Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008786/0.0008786, allocations: 85.05 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000822/0.000822, allocations: 142.3 kB / 24.89 MB, free: 9.211 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8583/0.8583, allocations: 173.3 MB / 201.5 MB, free: 9.172 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 268.5 MB, free: 6.18 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.694e-05/1.858e-05, allocations: 2.312 kB / 268.5 MB, free: 6.176 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1206/0.1206, allocations: 24.69 MB / 293.2 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02199/0.1426, allocations: 21.6 MB / 314.8 MB, free: 6.316 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001841/0.1445, allocations: 267.6 kB / 315 MB, free: 6.133 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002522/0.147, allocations: 1.753 MB / 316.8 MB, free: 5.008 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005368/0.1524, allocations: 3.458 MB / 320.2 MB, free: 2.145 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002557/0.1549, allocations: 1.648 MB / 321.9 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01037/0.1653, allocations: 13.23 MB / 335.1 MB, free: 5.746 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007583/0.166, allocations: 0.5531 MB / 335.7 MB, free: 5.141 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004895/0.1709, allocations: 5.787 MB / 341.4 MB, free: 15.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001304/0.1722, allocations: 1.561 MB / 343 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001721/0.1724, allocations: 132 kB / 343.1 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002045/0.1745, allocations: 1.268 MB / 344.4 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003455/0.1748, allocations: 0.6127 MB / 345 MB, free: 11.76 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001021/0.1758, allocations: 1.417 MB / 346.4 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00328/0.1791, allocations: 4.648 MB / 351.1 MB, free: 5.668 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1791, allocations: 0 / 351.1 MB, free: 5.668 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1791, allocations: 0 / 351.1 MB, free: 5.668 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.928e-05/0.1791, allocations: 0 / 351.1 MB, free: 5.668 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.004589/0.1837, allocations: 6.771 MB / 357.8 MB, free: 14.81 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.846e-05/0.1838, allocations: 12.92 kB / 357.9 MB, free: 14.8 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003908/0.1841, allocations: 0.5266 MB / 358.4 MB, free: 14.27 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003514/0.1877, allocations: 3.928 MB / 362.3 MB, free: 10.2 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.595e-05/0.1877, allocations: 66 kB / 362.4 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001269/0.1878, allocations: 99.91 kB / 362.5 MB, free: 10.04 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007648/0.1886, allocations: 0.7891 MB / 363.3 MB, free: 9.23 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.1886, allocations: 0 / 363.3 MB, free: 9.23 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.596e-05/0.1887, allocations: 35.75 kB / 363.3 MB, free: 9.199 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.211e-05/0.1887, allocations: 35.98 kB / 363.3 MB, free: 9.164 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006184/0.1893, allocations: 431.1 kB / 363.8 MB, free: 8.734 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003513/0.1928, allocations: 2.885 MB / 366.6 MB, free: 5.801 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004318/0.1933, allocations: 485.4 kB / 367.1 MB, free: 5.316 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004966/0.1938, allocations: 0.6303 MB / 367.7 MB, free: 4.684 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04523/0.239, allocations: 45.48 MB / 413.2 MB, free: 5.496 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003511/0.2393, allocations: 330.1 kB / 413.6 MB, free: 5.164 MB / 362.7 MB Notification: Performance of pre-optimization done (n=85): time 2.274e-06/0.2393, allocations: 0 / 413.6 MB, free: 5.164 MB / 362.7 MB Notification: Performance of matching and sorting (n=85): time 0.0008451/0.2402, allocations: 0.8517 MB / 414.4 MB, free: 4.305 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.517e-05/0.2402, allocations: 64.06 kB / 414.5 MB, free: 4.23 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002932/0.2431, allocations: 5.056 MB / 419.5 MB, free: 15.19 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.949e-05/0.2432, allocations: 41.7 kB / 419.6 MB, free: 15.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006887/0.2439, allocations: 1.393 MB / 421 MB, free: 13.74 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001565/0.244, allocations: 309.4 kB / 421.3 MB, free: 13.43 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002605/0.2443, allocations: 342.9 kB / 421.6 MB, free: 13.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.996e-05/0.2444, allocations: 309.1 kB / 421.9 MB, free: 12.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001733/0.2445, allocations: 139.9 kB / 422 MB, free: 12.65 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000444/0.245, allocations: 0.8446 MB / 422.9 MB, free: 11.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007333/0.2457, allocations: 1.165 MB / 424 MB, free: 9.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.497e-06/0.2457, allocations: 11.44 kB / 424.1 MB, free: 9.973 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.001304/0.247, allocations: 1.287 MB / 425.3 MB, free: 8.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.247, allocations: 16 kB / 425.4 MB, free: 8.664 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.831e-05/0.2471, allocations: 40 kB / 425.4 MB, free: 8.625 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.752e-05/0.2472, allocations: 35.98 kB / 425.4 MB, free: 8.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005623/0.2477, allocations: 355.4 kB / 425.8 MB, free: 8.242 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.536e-05/0.2477, allocations: 47.84 kB / 425.8 MB, free: 8.195 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000733/0.2485, allocations: 186.8 kB / 426 MB, free: 8.012 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001/0.2486, allocations: 72 kB / 426.1 MB, free: 7.941 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.0004243/0.249, allocations: 225.1 kB / 426.3 MB, free: 7.711 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003091/0.2493, allocations: 471.4 kB / 426.8 MB, free: 7.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00172/0.251, allocations: 1.469 MB / 428.2 MB, free: 5.781 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.251, allocations: 8 kB / 428.2 MB, free: 5.773 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.402e-06/0.251, allocations: 0 / 428.2 MB, free: 5.773 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.251, allocations: 3.984 kB / 428.2 MB, free: 5.77 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002237/0.2533, allocations: 2.776 MB / 431 MB, free: 2.945 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.379e-05/0.2533, allocations: 20 kB / 431 MB, free: 2.926 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003169/0.2537, allocations: 139.8 kB / 431.2 MB, free: 2.789 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.2537, allocations: 4 kB / 431.2 MB, free: 2.785 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.474e-05/0.2537, allocations: 27.98 kB / 431.2 MB, free: 2.758 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.2537, allocations: 7.938 kB / 431.2 MB, free: 2.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.2537, allocations: 4 kB / 431.2 MB, free: 2.746 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009146/0.2546, allocations: 1.06 MB / 432.3 MB, free: 1.668 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008576/0.2555, allocations: 0.7313 MB / 433 MB, free: 0.918 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002944/0.2558, allocations: 16 kB / 433 MB, free: 0.9023 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005223/0.2563, allocations: 23.98 kB / 433 MB, free: 0.8789 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.2564, allocations: 68.42 kB / 433.1 MB, free: 0.8125 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.909e-05/0.2565, allocations: 19.98 kB / 433.1 MB, free: 0.793 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.09846/0.3549, allocations: 2.721 MB / 435.9 MB, free: 115.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.3549, allocations: 1.781 kB / 435.9 MB, free: 115.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002477/0.3574, allocations: 1.085 MB / 436.9 MB, free: 115.7 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.00181/0.3592, allocations: 1.454 MB / 438.4 MB, free: 115.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00115/0.3604, allocations: 0.8421 MB / 439.2 MB, free: 115.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001267/0.3605, allocations: 84.22 kB / 439.3 MB, free: 115.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004607/0.3609, allocations: 435.6 kB / 439.7 MB, free: 115.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003609/0.3646, allocations: 1.183 MB / 440.9 MB, free: 114.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007328/0.3719, allocations: 7.564 MB / 448.5 MB, free: 111.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004916/0.3724, allocations: 0.6904 MB / 449.2 MB, free: 111.1 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001416/0.3738, allocations: 0.6816 MB / 449.9 MB, free: 111 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00174/0.3755, allocations: 1.068 MB / 450.9 MB, free: 110.9 MB / 378.7 MB Notification: Performance of SimCode: time 8.72e-07/0.3755, allocations: 0 / 450.9 MB, free: 110.9 MB / 378.7 MB Notification: Performance of Templates: time 0.06414/0.4397, allocations: 66.08 MB / 0.5049 GB, free: 48.88 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.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.866934990044683]