Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.0008683/0.0008683, allocations: 80.8 kB / 21.49 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.0008747/0.0008747, allocations: 168.7 kB / 24.91 MB, free: 8.762 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.8532/0.8532, allocations: 177.1 MB / 205.3 MB, free: 5.469 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.InvertersApartRecord,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.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_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.432e-06/1.432e-06, allocations: 0 / 273.4 MB, free: 1.305 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.012e-05/1.155e-05, allocations: 2.312 kB / 273.4 MB, free: 1.301 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01277/0.01278, allocations: 13.71 MB / 287.1 MB, free: 3.527 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1046/0.1174, allocations: 19.81 MB / 307 MB, free: 10.37 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007386/0.1182, allocations: 133.6 kB / 307.1 MB, free: 10.28 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001487/0.1196, allocations: 1.173 MB / 308.3 MB, free: 9.707 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00284/0.1225, allocations: 2.455 MB / 310.7 MB, free: 8.18 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001675/0.1242, allocations: 1.462 MB / 312.2 MB, free: 7.113 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004043/0.1282, allocations: 6.846 MB / 319 MB, free: 3.586 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002866/0.1285, allocations: 310.3 kB / 319.3 MB, free: 3.242 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001714/0.1302, allocations: 3.036 MB / 322.4 MB, free: 204 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006806/0.1309, allocations: 0.8256 MB / 323.2 MB, free: 15.37 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001014/0.131, allocations: 76 kB / 323.3 MB, free: 15.3 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001532/0.1325, allocations: 1.209 MB / 324.5 MB, free: 14.09 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002007/0.1327, allocations: 337.6 kB / 324.8 MB, free: 13.75 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005458/0.1333, allocations: 0.7408 MB / 325.5 MB, free: 13.01 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001987/0.1353, allocations: 2.815 MB / 328.4 MB, free: 10.19 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.1353, allocations: 4 kB / 328.4 MB, free: 10.18 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.1353, allocations: 0 / 328.4 MB, free: 10.18 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.589e-05/0.1353, allocations: 0 / 328.4 MB, free: 10.18 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.002498/0.1378, allocations: 3.665 MB / 332 MB, free: 6.465 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.672e-05/0.1378, allocations: 11.97 kB / 332 MB, free: 6.453 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002226/0.138, allocations: 279.7 kB / 332.3 MB, free: 6.18 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001773/0.1398, allocations: 2.051 MB / 334.4 MB, free: 4.016 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.383e-05/0.1398, allocations: 37 kB / 334.4 MB, free: 3.977 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.542e-05/0.1399, allocations: 55.97 kB / 334.5 MB, free: 3.922 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004921/0.1404, allocations: 467.4 kB / 334.9 MB, free: 3.457 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.1404, allocations: 4 kB / 334.9 MB, free: 3.453 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.086e-05/0.1404, allocations: 23.92 kB / 334.9 MB, free: 3.43 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.488e-05/0.1405, allocations: 23.98 kB / 335 MB, free: 3.406 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003346/0.1408, allocations: 224.5 kB / 335.2 MB, free: 3.191 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002046/0.1428, allocations: 1.569 MB / 336.7 MB, free: 1.586 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002705/0.1431, allocations: 276.9 kB / 337 MB, free: 1.309 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002633/0.1434, allocations: 327 kB / 337.3 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02326/0.1666, allocations: 23.02 MB / 360.4 MB, free: 9.105 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002198/0.1668, allocations: 217.8 kB / 360.6 MB, free: 8.875 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.724e-06/0.1668, allocations: 0 / 360.6 MB, free: 8.875 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0005126/0.1674, allocations: 479.2 kB / 361 MB, free: 8.406 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.144e-05/0.1674, allocations: 63.39 kB / 361.1 MB, free: 8.332 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001656/0.169, allocations: 2.66 MB / 363.8 MB, free: 5.656 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.3e-05/0.1691, allocations: 29.7 kB / 363.8 MB, free: 5.621 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003697/0.1694, allocations: 0.7596 MB / 364.6 MB, free: 4.848 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.059e-05/0.1695, allocations: 174.5 kB / 364.7 MB, free: 4.676 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00015/0.1697, allocations: 190.2 kB / 364.9 MB, free: 4.484 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.393e-05/0.1698, allocations: 349.8 kB / 365.3 MB, free: 4.137 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.1699, allocations: 81.95 kB / 365.3 MB, free: 4.055 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002427/0.1701, allocations: 452.2 kB / 365.8 MB, free: 3.434 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004134/0.1705, allocations: 0.6171 MB / 366.4 MB, free: 2.645 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.838e-06/0.1705, allocations: 7.938 kB / 366.4 MB, free: 2.637 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0005888/0.1711, allocations: 0.6929 MB / 367.1 MB, free: 1.941 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.1711, allocations: 12 kB / 367.1 MB, free: 1.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.204e-05/0.1712, allocations: 24.16 kB / 367.1 MB, free: 1.906 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.1712, allocations: 19.98 kB / 367.1 MB, free: 1.887 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003429/0.1715, allocations: 196.2 kB / 367.3 MB, free: 1.695 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.436e-05/0.1715, allocations: 31.86 kB / 367.4 MB, free: 1.664 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004139/0.172, allocations: 99.28 kB / 367.5 MB, free: 1.566 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.07e-05/0.172, allocations: 42.06 kB / 367.5 MB, free: 1.527 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.0002507/0.1723, allocations: 178.3 kB / 367.7 MB, free: 1.344 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001725/0.1724, allocations: 247.7 kB / 367.9 MB, free: 1.102 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009382/0.1734, allocations: 0.789 MB / 368.7 MB, free: 312 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.1734, allocations: 4 kB / 368.7 MB, free: 308 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-06/0.1734, allocations: 0 / 368.7 MB, free: 308 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.1734, allocations: 0 / 368.7 MB, free: 308 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001457/0.1748, allocations: 1.548 MB / 370.3 MB, free: 14.7 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.44e-05/0.1749, allocations: 15.98 kB / 370.3 MB, free: 14.68 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001994/0.1751, allocations: 87.94 kB / 370.4 MB, free: 14.6 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.1751, allocations: 4 kB / 370.4 MB, free: 14.59 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.345e-05/0.1751, allocations: 8 kB / 370.4 MB, free: 14.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.1751, allocations: 4 kB / 370.4 MB, free: 14.58 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1751, allocations: 3.75 kB / 370.4 MB, free: 14.58 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005348/0.1756, allocations: 0.6289 MB / 371 MB, free: 13.93 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003563/0.176, allocations: 397.2 kB / 371.4 MB, free: 13.54 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001628/0.1762, allocations: 8 kB / 371.4 MB, free: 13.53 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003208/0.1765, allocations: 30.84 kB / 371.4 MB, free: 13.5 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.861e-05/0.1766, allocations: 43.97 kB / 371.5 MB, free: 13.46 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.014e-05/0.1766, allocations: 15.98 kB / 371.5 MB, free: 13.45 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008233/0.1774, allocations: 1.41 MB / 372.9 MB, free: 12.03 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1774, allocations: 0 / 372.9 MB, free: 12.03 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006888/0.1781, allocations: 0.6008 MB / 373.5 MB, free: 11.43 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.0008037/0.1789, allocations: 0.919 MB / 374.4 MB, free: 10.5 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004189/0.1793, allocations: 458.3 kB / 374.9 MB, free: 10.03 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-05/0.1793, allocations: 40.5 kB / 374.9 MB, free: 9.992 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001966/0.1795, allocations: 244.9 kB / 375.2 MB, free: 9.727 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001207/0.1807, allocations: 0.6139 MB / 375.8 MB, free: 9.109 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003283/0.184, allocations: 3.986 MB / 379.8 MB, free: 5.059 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00023/0.1843, allocations: 387.7 kB / 380.1 MB, free: 4.66 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005159/0.1848, allocations: 357.1 kB / 380.5 MB, free: 4.305 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007258/0.1855, allocations: 0.5733 MB / 381.1 MB, free: 3.727 MB / 330.7 MB Notification: Performance of SimCode: time 9.01e-07/0.1855, allocations: 0 / 381.1 MB, free: 3.727 MB / 330.7 MB Notification: Performance of Templates: time 0.03861/0.2241, allocations: 37.34 MB / 418.4 MB, free: 14.93 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.1380670932121575]