Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008617/0.0008617, allocations: 80.8 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009027/0.0009027, allocations: 169.6 kB / 24.91 MB, free: 8.766 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.896/0.896, allocations: 177.1 MB / 205.3 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 0 / 273.4 MB, free: 1.336 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.217e-05/1.346e-05, allocations: 2.312 kB / 273.4 MB, free: 1.332 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.009134/0.009147, allocations: 14.25 MB / 287.7 MB, free: 3.02 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.109/0.1181, allocations: 19.9 MB / 307.6 MB, free: 9.934 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001188/0.1193, allocations: 133.7 kB / 307.7 MB, free: 9.844 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002078/0.1214, allocations: 1.207 MB / 308.9 MB, free: 9.246 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004381/0.1258, allocations: 2.499 MB / 311.4 MB, free: 7.664 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002719/0.1285, allocations: 1.461 MB / 312.9 MB, free: 6.555 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005853/0.1344, allocations: 6.992 MB / 319.9 MB, free: 2.754 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003991/0.1348, allocations: 295 kB / 320.2 MB, free: 2.426 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002634/0.1374, allocations: 3.09 MB / 323.3 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009694/0.1384, allocations: 0.8446 MB / 324.1 MB, free: 14.48 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001442/0.1385, allocations: 76 kB / 324.2 MB, free: 14.41 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002092/0.1406, allocations: 1.21 MB / 325.4 MB, free: 13.2 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002728/0.1409, allocations: 349.4 kB / 325.7 MB, free: 12.85 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007755/0.1417, allocations: 0.7638 MB / 326.5 MB, free: 12.09 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002796/0.1444, allocations: 2.879 MB / 329.4 MB, free: 9.195 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.1444, allocations: 4 kB / 329.4 MB, free: 9.191 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1445, allocations: 4 kB / 329.4 MB, free: 9.188 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.231e-05/0.1445, allocations: 3.938 kB / 329.4 MB, free: 9.184 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.003504/0.148, allocations: 3.822 MB / 333.2 MB, free: 5.309 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.96e-05/0.148, allocations: 8.031 kB / 333.2 MB, free: 5.301 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003153/0.1483, allocations: 291.6 kB / 333.5 MB, free: 5.016 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002335/0.1507, allocations: 2.108 MB / 335.6 MB, free: 2.797 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.357e-05/0.1507, allocations: 37 kB / 335.6 MB, free: 2.758 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.447e-05/0.1508, allocations: 51.95 kB / 335.7 MB, free: 2.707 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004665/0.1512, allocations: 471.5 kB / 336.1 MB, free: 2.238 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.1512, allocations: 3.938 kB / 336.2 MB, free: 2.234 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.174e-05/0.1513, allocations: 27.94 kB / 336.2 MB, free: 2.207 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.421e-05/0.1513, allocations: 19.98 kB / 336.2 MB, free: 2.188 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003273/0.1516, allocations: 224.5 kB / 336.4 MB, free: 1.973 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001954/0.1536, allocations: 1.562 MB / 338 MB, free: 384 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002795/0.1538, allocations: 287.3 kB / 338.3 MB, free: 92 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000269/0.1541, allocations: 327 kB / 338.6 MB, free: 15.77 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02355/0.1777, allocations: 23.02 MB / 361.6 MB, free: 7.887 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002273/0.1779, allocations: 221.8 kB / 361.8 MB, free: 7.652 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.694e-06/0.1779, allocations: 4 kB / 361.8 MB, free: 7.648 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0005158/0.1784, allocations: 487.2 kB / 362.3 MB, free: 7.172 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.897e-05/0.1784, allocations: 63.34 kB / 362.4 MB, free: 7.098 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001552/0.18, allocations: 2.791 MB / 365.2 MB, free: 4.301 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.406e-05/0.18, allocations: 33.7 kB / 365.2 MB, free: 4.262 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003891/0.1804, allocations: 0.7845 MB / 366 MB, free: 3.465 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.313e-05/0.1805, allocations: 174.5 kB / 366.1 MB, free: 3.293 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001581/0.1807, allocations: 194.3 kB / 366.3 MB, free: 3.098 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.533e-05/0.1807, allocations: 341.8 kB / 366.7 MB, free: 2.758 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001018/0.1808, allocations: 73.95 kB / 366.7 MB, free: 2.684 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00025/0.1811, allocations: 456.2 kB / 367.2 MB, free: 2.055 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006437/0.1817, allocations: 0.6131 MB / 367.8 MB, free: 1.273 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.1817, allocations: 4 kB / 367.8 MB, free: 1.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0006154/0.1824, allocations: 0.7078 MB / 368.5 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.1824, allocations: 12.88 kB / 368.5 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.21e-05/0.1824, allocations: 20 kB / 368.5 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/0.1824, allocations: 22.06 kB / 368.6 MB, free: 0.5078 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004668/0.1829, allocations: 199.7 kB / 368.8 MB, free: 320 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.485e-05/0.1829, allocations: 27.86 kB / 368.8 MB, free: 292 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007321/0.1837, allocations: 107.3 kB / 368.9 MB, free: 184 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.552e-05/0.1837, allocations: 36 kB / 368.9 MB, free: 148 kB / 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.0002732/0.184, allocations: 166.5 kB / 369.1 MB, free: 15.97 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001822/0.1842, allocations: 259.5 kB / 369.3 MB, free: 15.72 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009794/0.1852, allocations: 0.8026 MB / 370.1 MB, free: 14.9 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.1852, allocations: 11.98 kB / 370.2 MB, free: 14.89 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-06/0.1852, allocations: 0 / 370.2 MB, free: 14.89 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.1852, allocations: 7.984 kB / 370.2 MB, free: 14.88 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001299/0.1865, allocations: 1.601 MB / 371.8 MB, free: 13.24 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.017e-05/0.1865, allocations: 8 kB / 371.8 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002099/0.1867, allocations: 83.88 kB / 371.9 MB, free: 13.15 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.1867, allocations: 8.062 kB / 371.9 MB, free: 13.14 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.507e-05/0.1867, allocations: 8 kB / 371.9 MB, free: 13.13 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.1867, allocations: 3.984 kB / 371.9 MB, free: 13.13 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/0.1867, allocations: 10.88 kB / 371.9 MB, free: 13.12 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005561/0.1873, allocations: 0.6379 MB / 372.5 MB, free: 12.46 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003638/0.1877, allocations: 401.1 kB / 372.9 MB, free: 12.07 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001669/0.1878, allocations: 15.98 kB / 372.9 MB, free: 12.05 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000314/0.1881, allocations: 15.98 kB / 372.9 MB, free: 12.04 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.828e-05/0.1882, allocations: 51.8 kB / 373 MB, free: 11.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.01e-05/0.1882, allocations: 16.03 kB / 373 MB, free: 11.97 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009055/0.1892, allocations: 1.49 MB / 374.5 MB, free: 10.48 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1892, allocations: 0 / 374.5 MB, free: 10.48 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007077/0.1899, allocations: 0.5969 MB / 375.1 MB, free: 9.883 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.0008017/0.1907, allocations: 0.919 MB / 376 MB, free: 8.953 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004256/0.1911, allocations: 465.8 kB / 376.5 MB, free: 8.477 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.791e-05/0.1911, allocations: 44.94 kB / 376.5 MB, free: 8.434 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001979/0.1913, allocations: 244.9 kB / 376.8 MB, free: 8.168 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001268/0.1926, allocations: 0.6465 MB / 377.4 MB, free: 7.52 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003352/0.1959, allocations: 4.176 MB / 381.6 MB, free: 3.277 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002403/0.1962, allocations: 402.2 kB / 382 MB, free: 2.863 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005515/0.1967, allocations: 365.3 kB / 382.3 MB, free: 2.5 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007558/0.1975, allocations: 0.5928 MB / 382.9 MB, free: 1.902 MB / 330.7 MB Notification: Performance of SimCode: time 5.71e-07/0.1975, allocations: 0 / 382.9 MB, free: 1.902 MB / 330.7 MB Notification: Performance of Templates: time 0.0389/0.2364, allocations: 38.23 MB / 421.2 MB, free: 12.24 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.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.2592201880179346]