Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009145/0.0009145, allocations: 91.5 kB / 21.2 MB, free: 3.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000965/0.000965, allocations: 156.5 kB / 24.55 MB, free: 24 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8814/0.8814, allocations: 177 MB / 204.8 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.193e-06/1.193e-06, allocations: 0 / 272.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.213e-05/1.333e-05, allocations: 2.312 kB / 272.9 MB, free: 1.477 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.009548/0.009561, allocations: 14.06 MB / 287 MB, free: 3.348 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1134/0.123, allocations: 19.77 MB / 306.7 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001197/0.1242, allocations: 132.6 kB / 306.9 MB, free: 10.16 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001789/0.126, allocations: 1.15 MB / 308 MB, free: 9.598 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004232/0.1302, allocations: 2.428 MB / 310.4 MB, free: 8.09 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002361/0.1326, allocations: 1.448 MB / 311.9 MB, free: 7.031 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004558/0.1371, allocations: 6.912 MB / 318.8 MB, free: 3.586 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003578/0.1375, allocations: 253.8 kB / 319.1 MB, free: 3.309 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001933/0.1394, allocations: 3.053 MB / 322.1 MB, free: 256 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006948/0.1401, allocations: 0.8217 MB / 322.9 MB, free: 15.43 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001283/0.1403, allocations: 76 kB / 323 MB, free: 15.35 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00178/0.142, allocations: 1.21 MB / 324.2 MB, free: 14.14 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001944/0.1422, allocations: 333.6 kB / 324.5 MB, free: 13.81 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005694/0.1428, allocations: 0.7486 MB / 325.3 MB, free: 13.06 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002209/0.145, allocations: 2.809 MB / 328.1 MB, free: 10.24 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.145, allocations: 0 / 328.1 MB, free: 10.24 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.145, allocations: 0 / 328.1 MB, free: 10.24 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.824e-05/0.145, allocations: 0 / 328.1 MB, free: 10.24 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.002903/0.148, allocations: 3.941 MB / 332 MB, free: 6.234 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.323e-05/0.148, allocations: 15.98 kB / 332 MB, free: 6.219 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003261/0.1483, allocations: 453.4 kB / 332.5 MB, free: 5.773 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001932/0.1502, allocations: 2.505 MB / 335 MB, free: 3.172 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.492e-05/0.1503, allocations: 37 kB / 335 MB, free: 3.133 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.297e-05/0.1503, allocations: 59.89 kB / 335.1 MB, free: 3.074 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000662/0.151, allocations: 0.5358 MB / 335.6 MB, free: 2.527 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.151, allocations: 3.984 kB / 335.6 MB, free: 2.523 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.383e-05/0.1511, allocations: 19.94 kB / 335.7 MB, free: 2.504 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.645e-05/0.1511, allocations: 27.98 kB / 335.7 MB, free: 2.477 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005665/0.1516, allocations: 482.4 kB / 336.2 MB, free: 2.012 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00298/0.1546, allocations: 2.867 MB / 339 MB, free: 15.08 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004136/0.155, allocations: 326 kB / 339.3 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003986/0.1554, allocations: 413.8 kB / 339.7 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01421/0.1697, allocations: 15.23 MB / 355 MB, free: 14.73 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003253/0.17, allocations: 283.7 kB / 355.2 MB, free: 14.43 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.375e-06/0.17, allocations: 4 kB / 355.2 MB, free: 14.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0008981/0.1709, allocations: 0.8583 MB / 356.1 MB, free: 13.56 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.869e-05/0.1709, allocations: 67.27 kB / 356.2 MB, free: 13.48 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002312/0.1732, allocations: 3.169 MB / 359.3 MB, free: 10.29 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.723e-05/0.1733, allocations: 37.7 kB / 359.4 MB, free: 10.25 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009337/0.1742, allocations: 1.662 MB / 361 MB, free: 8.574 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001049/0.1743, allocations: 178.6 kB / 361.2 MB, free: 8.398 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001928/0.1745, allocations: 240 kB / 361.4 MB, free: 8.156 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.1746, allocations: 0.5082 MB / 362 MB, free: 7.641 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001796/0.1748, allocations: 133.9 kB / 362.1 MB, free: 7.508 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003769/0.1752, allocations: 0.6472 MB / 362.7 MB, free: 6.621 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006625/0.1758, allocations: 0.8539 MB / 363.6 MB, free: 5.527 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.472e-06/0.1758, allocations: 4 kB / 363.6 MB, free: 5.523 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0009383/0.1768, allocations: 1.072 MB / 364.7 MB, free: 4.449 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.1768, allocations: 13.62 kB / 364.7 MB, free: 4.438 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.058e-05/0.1769, allocations: 83.98 kB / 364.8 MB, free: 4.355 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.173e-05/0.1769, allocations: 20 kB / 364.8 MB, free: 4.336 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003809/0.1773, allocations: 199.6 kB / 365 MB, free: 4.141 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.601e-05/0.1773, allocations: 24.81 kB / 365 MB, free: 4.117 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004221/0.1777, allocations: 111.2 kB / 365.1 MB, free: 4.008 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.124e-05/0.1778, allocations: 67.98 kB / 365.2 MB, free: 3.941 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000284/0.1781, allocations: 216.2 kB / 365.4 MB, free: 3.719 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002335/0.1783, allocations: 417.5 kB / 365.8 MB, free: 3.309 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001166/0.1795, allocations: 1.022 MB / 366.8 MB, free: 2.285 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.1795, allocations: 8 kB / 366.8 MB, free: 2.277 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1795, allocations: 3.938 kB / 366.8 MB, free: 2.273 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.1795, allocations: 7.969 kB / 366.8 MB, free: 2.266 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001758/0.1812, allocations: 2.075 MB / 368.9 MB, free: 136 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.802e-05/0.1813, allocations: 72 kB / 369 MB, free: 64 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002394/0.1815, allocations: 79.94 kB / 369.1 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.1815, allocations: 8 kB / 369.1 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.829e-05/0.1816, allocations: 39.92 kB / 369.1 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.1816, allocations: 0 / 369.1 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.1816, allocations: 4.562 kB / 369.1 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008832/0.1825, allocations: 1.074 MB / 370.2 MB, free: 14.82 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003616/0.1828, allocations: 439.2 kB / 370.6 MB, free: 14.39 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001643/0.183, allocations: 11.94 kB / 370.6 MB, free: 14.38 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000313/0.1833, allocations: 27.23 kB / 370.6 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001131/0.1834, allocations: 59.92 kB / 370.7 MB, free: 14.3 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.986e-05/0.1834, allocations: 40.03 kB / 370.7 MB, free: 14.26 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001364/0.1848, allocations: 1.735 MB / 372.5 MB, free: 12.52 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1848, allocations: 0 / 372.5 MB, free: 12.52 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007365/0.1855, allocations: 0.593 MB / 373.1 MB, free: 11.93 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007353/0.1863, allocations: 0.829 MB / 373.9 MB, free: 11.09 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006079/0.1869, allocations: 0.6228 MB / 374.5 MB, free: 10.45 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1869, allocations: 8.125 kB / 374.5 MB, free: 10.44 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002718/0.1872, allocations: 347.7 kB / 374.9 MB, free: 10.07 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001356/0.1885, allocations: 0.634 MB / 375.5 MB, free: 9.449 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0034/0.1919, allocations: 4.133 MB / 379.6 MB, free: 5.246 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002275/0.1921, allocations: 379.9 kB / 380 MB, free: 4.855 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005432/0.1927, allocations: 361.1 kB / 380.4 MB, free: 4.496 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001521/0.1928, allocations: 152.5 kB / 380.5 MB, free: 4.348 MB / 330.7 MB Notification: Performance of SimCode: time 7.92e-07/0.1928, allocations: 0 / 380.5 MB, free: 4.348 MB / 330.7 MB Notification: Performance of Templates: time 0.04104/0.2339, allocations: 38.98 MB / 419.5 MB, free: 13.84 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4397235428914428]