Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection") translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001399/0.001399, allocations: 107.4 kB / 17.16 MB, free: 6.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 198 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.592/1.592, allocations: 205.1 MB / 223.9 MB, free: 12.38 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001866/0.001866, allocations: 55.92 kB / 280 MB, free: 3.59 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.1316, allocations: 46.63 MB / 326.6 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004032/0.1357, allocations: 2.71 MB / 329.3 MB, free: 2.16 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001155/0.1369, allocations: 0.706 MB / 330 MB, free: 1.445 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001205/0.137, allocations: 4 kB / 330 MB, free: 1.441 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001639/0.1372, allocations: 35.7 kB / 330.1 MB, free: 1.406 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001361/0.1373, allocations: 63.45 kB / 330.1 MB, free: 1.344 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002874/0.1376, allocations: 83.84 kB / 330.2 MB, free: 1.262 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003533/0.138, allocations: 342.5 kB / 330.5 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002041/0.1382, allocations: 81.14 kB / 330.6 MB, free: 0.8516 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000202/0.1384, allocations: 131.5 kB / 330.7 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001818/0.1386, allocations: 143.4 kB / 330.9 MB, free: 0.582 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.654e-05/0.1387, allocations: 20 kB / 330.9 MB, free: 0.5625 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.785e-05/0.1387, allocations: 20 kB / 330.9 MB, free: 0.543 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.674e-05/0.1388, allocations: 59.73 kB / 331 MB, free: 496 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001324/0.1389, allocations: 131.4 kB / 331.1 MB, free: 364 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003146/0.1392, allocations: 327.1 kB / 331.4 MB, free: 36 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.1393, allocations: 0 / 331.4 MB, free: 36 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1393, allocations: 3.938 kB / 331.4 MB, free: 32 kB / 270.1 MB Notification: Performance of Transformations before backend: time 6.082e-06/0.1393, allocations: 4 kB / 331.4 MB, free: 28 kB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001652/0.1409, allocations: 0.6393 MB / 332.1 MB, free: 15.34 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.141, allocations: 8.031 kB / 332.1 MB, free: 15.33 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/0.1411, allocations: 32.56 kB / 332.1 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000402/0.1415, allocations: 260.7 kB / 332.4 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.601e-05/0.1416, allocations: 12.81 kB / 332.4 MB, free: 14.99 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.158e-05/0.1416, allocations: 24.38 kB / 332.4 MB, free: 14.97 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007474/0.1424, allocations: 298.9 kB / 332.7 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.1424, allocations: 3.984 kB / 332.7 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.451e-05/0.1424, allocations: 8 kB / 332.7 MB, free: 14.65 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.866e-06/0.1425, allocations: 8 kB / 332.7 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007992/0.1433, allocations: 273.5 kB / 333 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001809/0.1451, allocations: 1.069 MB / 334 MB, free: 13.23 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001954/0.1471, allocations: 434.3 kB / 334.5 MB, free: 12.79 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003943/0.1475, allocations: 148.8 kB / 334.6 MB, free: 12.64 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.131e-05/0.1475, allocations: 0 / 334.6 MB, free: 12.64 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.502e-05/0.1475, allocations: 38.56 kB / 334.7 MB, free: 12.6 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 2.505e-06/0.1475, allocations: 0 / 334.7 MB, free: 12.6 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.005192/0.1527, allocations: 1.018 MB / 335.7 MB, free: 11.55 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.324e-05/0.1528, allocations: 55.41 kB / 335.7 MB, free: 11.48 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002487/0.1531, allocations: 216.1 kB / 335.9 MB, free: 11.26 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.816e-05/0.1531, allocations: 29.7 kB / 336 MB, free: 11.22 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.1532, allocations: 168.1 kB / 336.1 MB, free: 11.05 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.118e-05/0.1533, allocations: 47.27 kB / 336.2 MB, free: 11.01 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.808e-05/0.1534, allocations: 37.69 kB / 336.2 MB, free: 10.96 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.1535, allocations: 334.8 kB / 336.5 MB, free: 10.63 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003523/0.1539, allocations: 103.9 kB / 336.6 MB, free: 10.53 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003876/0.1543, allocations: 125.6 kB / 336.8 MB, free: 10.4 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006567/0.155, allocations: 220.9 kB / 337 MB, free: 10.18 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.155, allocations: 0 / 337 MB, free: 10.18 MB / 286.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002992/0.158, allocations: 0.6383 MB / 337.6 MB, free: 9.531 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.158, allocations: 4 kB / 337.6 MB, free: 9.527 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.158, allocations: 4 kB / 337.6 MB, free: 9.523 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007662/0.1588, allocations: 224.6 kB / 337.8 MB, free: 9.301 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001726/0.159, allocations: 35.92 kB / 337.9 MB, free: 9.266 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006756/0.1658, allocations: 2.493 MB / 340.4 MB, free: 6.637 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003408/0.1661, allocations: 40 kB / 340.4 MB, free: 6.598 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.319e-05/0.1662, allocations: 4 kB / 340.4 MB, free: 6.594 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002039/0.1664, allocations: 133.7 kB / 340.6 MB, free: 6.453 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.365e-05/0.1665, allocations: 31.64 kB / 340.6 MB, free: 6.422 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.382e-05/0.1665, allocations: 21.53 kB / 340.6 MB, free: 6.398 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.389e-06/0.1666, allocations: 8 kB / 340.6 MB, free: 6.391 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.1666, allocations: 0 / 340.6 MB, free: 6.391 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.1666, allocations: 7.922 kB / 340.6 MB, free: 6.383 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004903/0.1671, allocations: 317.5 kB / 340.9 MB, free: 6.023 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.1671, allocations: 0 / 340.9 MB, free: 6.023 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001754/0.1673, allocations: 35.84 kB / 341 MB, free: 5.988 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000709/0.168, allocations: 220.7 kB / 341.2 MB, free: 5.77 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.637e-05/0.168, allocations: 4 kB / 341.2 MB, free: 5.766 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006665/0.1747, allocations: 2.478 MB / 343.7 MB, free: 3.152 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.1747, allocations: 0 / 343.7 MB, free: 3.152 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003464/0.1782, allocations: 0.8555 MB / 344.5 MB, free: 2.277 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.97e-05/0.1783, allocations: 92.89 kB / 344.6 MB, free: 2.168 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.232e-05/0.1784, allocations: 11.94 kB / 344.6 MB, free: 2.156 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003121/0.1787, allocations: 28.06 kB / 344.6 MB, free: 2.129 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.921e-05/0.1788, allocations: 11.97 kB / 344.7 MB, free: 2.117 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.566e-05/0.1788, allocations: 11.98 kB / 344.7 MB, free: 2.105 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001655/0.179, allocations: 157.7 kB / 344.8 MB, free: 1.953 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.179, allocations: 4 kB / 344.8 MB, free: 1.949 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005004/0.1795, allocations: 79.84 kB / 344.9 MB, free: 1.871 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (CL.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001698/0.1797, allocations: 99.38 kB / 345 MB, free: 1.762 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001706/0.1814, allocations: 450.3 kB / 345.4 MB, free: 1.309 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1814, allocations: 0 / 345.4 MB, free: 1.309 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001144/0.1825, allocations: 326.5 kB / 345.8 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000434/0.183, allocations: 35.78 kB / 345.8 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001538/0.1845, allocations: 0.6371 MB / 346.4 MB, free: 296 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003524/0.1849, allocations: 0.744 MB / 347.2 MB, free: 15.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.095e-05/0.185, allocations: 17.53 kB / 347.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.361e-05/0.1851, allocations: 15.44 kB / 347.2 MB, free: 15.49 MB / 302.1 MB Notification: Performance of SimCode: time 6.12e-07/0.1851, allocations: 0 / 347.2 MB, free: 15.49 MB / 302.1 MB Notification: Performance of Templates: time 0.009605/0.1947, allocations: 4.636 MB / 351.8 MB, free: 10.85 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches