Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.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.000969/0.000969, allocations: 77.88 kB / 21.42 MB, free: 3.082 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.001127/0.001127, allocations: 170.6 kB / 24.82 MB, free: 8.957 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.9925/0.9925, allocations: 177.1 MB / 205.3 MB, free: 5.523 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.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.1.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.1.0_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.134e-06/2.134e-06, allocations: 0 / 273.4 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.529e-05/2.742e-05, allocations: 2.312 kB / 273.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1178/0.1179, allocations: 24.69 MB / 298.1 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02023/0.1381, allocations: 21.07 MB / 319.2 MB, free: 1.145 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002955/0.1411, allocations: 268.4 kB / 319.4 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002896/0.144, allocations: 1.691 MB / 321.1 MB, free: 15.69 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00976/0.1537, allocations: 3.442 MB / 324.5 MB, free: 12.84 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00432/0.158, allocations: 1.632 MB / 326.2 MB, free: 11.57 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01396/0.172, allocations: 13.49 MB / 339.7 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001124/0.1731, allocations: 496.4 kB / 340.2 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006136/0.1792, allocations: 5.962 MB / 346.1 MB, free: 8.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002373/0.1816, allocations: 1.569 MB / 347.7 MB, free: 6.496 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003993/0.182, allocations: 132 kB / 347.8 MB, free: 6.367 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003369/0.1854, allocations: 1.264 MB / 349.1 MB, free: 5.102 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003701/0.1858, allocations: 0.6244 MB / 349.7 MB, free: 4.473 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001623/0.1874, allocations: 1.414 MB / 351.1 MB, free: 3.055 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005184/0.1926, allocations: 4.648 MB / 355.8 MB, free: 14.38 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.316e-06/0.1926, allocations: 0 / 355.8 MB, free: 14.38 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1926, allocations: 0 / 355.8 MB, free: 14.38 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001616/0.1927, allocations: 0 / 355.8 MB, free: 14.38 MB / 314.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.006005/0.1987, allocations: 7.251 MB / 363 MB, free: 7.043 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/0.1988, allocations: 12.03 kB / 363 MB, free: 7.031 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007443/0.1995, allocations: 0.8506 MB / 363.9 MB, free: 6.176 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004671/0.2042, allocations: 4.807 MB / 368.7 MB, free: 1.25 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.123e-05/0.2043, allocations: 69.98 kB / 368.8 MB, free: 1.18 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000152/0.2044, allocations: 99.89 kB / 368.9 MB, free: 1.082 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009583/0.2054, allocations: 0.8408 MB / 369.7 MB, free: 228 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.2054, allocations: 0 / 369.7 MB, free: 228 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.044e-05/0.2055, allocations: 39.94 kB / 369.7 MB, free: 188 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.551e-05/0.2055, allocations: 39.97 kB / 369.8 MB, free: 148 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007991/0.2063, allocations: 0.8114 MB / 370.6 MB, free: 15.32 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004995/0.2113, allocations: 4.29 MB / 374.9 MB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005166/0.2118, allocations: 0.5104 MB / 375.4 MB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008005/0.2126, allocations: 0.7217 MB / 376.1 MB, free: 9.73 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02948/0.2421, allocations: 30.12 MB / 406.2 MB, free: 10.92 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004233/0.2425, allocations: 419.8 kB / 406.6 MB, free: 10.49 MB / 362.7 MB Notification: Performance of pre-optimization done (n=85): time 2.495e-06/0.2425, allocations: 0 / 406.6 MB, free: 10.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=85): time 0.001426/0.2439, allocations: 1.486 MB / 408.1 MB, free: 9 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.406e-05/0.244, allocations: 68.05 kB / 408.2 MB, free: 8.922 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004096/0.2481, allocations: 5.938 MB / 414.1 MB, free: 2.992 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.733e-05/0.2481, allocations: 37.7 kB / 414.2 MB, free: 2.949 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001853/0.25, allocations: 3.27 MB / 417.4 MB, free: 15.66 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002051/0.2502, allocations: 317.3 kB / 417.7 MB, free: 15.35 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003308/0.2505, allocations: 440.5 kB / 418.2 MB, free: 14.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003506/0.2509, allocations: 484.5 kB / 418.6 MB, free: 14.44 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002183/0.2511, allocations: 195.9 kB / 418.8 MB, free: 14.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006078/0.2517, allocations: 1.205 MB / 420 MB, free: 12.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009856/0.2527, allocations: 1.546 MB / 421.6 MB, free: 10.58 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.806e-06/0.2527, allocations: 8 kB / 421.6 MB, free: 10.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.001736/0.2544, allocations: 1.91 MB / 423.5 MB, free: 8.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.61e-05/0.2544, allocations: 19.94 kB / 423.5 MB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001241/0.2546, allocations: 160 kB / 423.7 MB, free: 8.484 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.957e-05/0.2546, allocations: 36 kB / 423.7 MB, free: 8.449 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006107/0.2552, allocations: 355.4 kB / 424.1 MB, free: 8.102 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.48e-05/0.2552, allocations: 47.86 kB / 424.1 MB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000947/0.2562, allocations: 182.9 kB / 424.3 MB, free: 7.875 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000134/0.2563, allocations: 119.9 kB / 424.4 MB, free: 7.758 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.0005472/0.2569, allocations: 264.7 kB / 424.7 MB, free: 7.488 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000675/0.2575, allocations: 0.7726 MB / 425.4 MB, free: 6.711 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002065/0.2596, allocations: 1.858 MB / 427.3 MB, free: 4.848 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.674e-06/0.2596, allocations: 8 kB / 427.3 MB, free: 4.84 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.894e-06/0.2596, allocations: 0 / 427.3 MB, free: 4.84 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.2596, allocations: 7.984 kB / 427.3 MB, free: 4.832 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003317/0.2629, allocations: 3.78 MB / 431.1 MB, free: 0.9844 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.785e-05/0.263, allocations: 140 kB / 431.2 MB, free: 0.8477 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003455/0.2634, allocations: 147.8 kB / 431.4 MB, free: 0.7031 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.578e-06/0.2634, allocations: 4 kB / 431.4 MB, free: 0.6992 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.304e-05/0.2634, allocations: 64.06 kB / 431.4 MB, free: 0.6367 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.2634, allocations: 0 / 431.4 MB, free: 0.6367 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.2634, allocations: 11.92 kB / 431.4 MB, free: 0.625 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1136/0.377, allocations: 1.744 MB / 433.2 MB, free: 111.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00111/0.3781, allocations: 0.809 MB / 434 MB, free: 111 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004192/0.3785, allocations: 15.25 kB / 434 MB, free: 111 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006039/0.3791, allocations: 25.59 kB / 434 MB, free: 111 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001682/0.3793, allocations: 105.5 kB / 434.1 MB, free: 111 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000107/0.3794, allocations: 65.02 kB / 434.2 MB, free: 111 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003102/0.3825, allocations: 3.02 MB / 437.2 MB, free: 110.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3825, allocations: 0 / 437.2 MB, free: 110.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002153/0.3847, allocations: 1.09 MB / 438.3 MB, free: 110.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.001825/0.3865, allocations: 1.431 MB / 439.7 MB, free: 110.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001282/0.3878, allocations: 1.088 MB / 440.8 MB, free: 110.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.3878, allocations: 0.6562 kB / 440.8 MB, free: 110.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004027/0.3882, allocations: 0.6083 MB / 441.4 MB, free: 110 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00345/0.3916, allocations: 1.235 MB / 442.7 MB, free: 109.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006649/0.3983, allocations: 7.753 MB / 450.4 MB, free: 106.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004054/0.3987, allocations: 0.6901 MB / 451.1 MB, free: 106 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001353/0.4, allocations: 0.6921 MB / 451.8 MB, free: 105.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001474/0.4015, allocations: 1.298 MB / 453.1 MB, free: 105.4 MB / 378.7 MB Notification: Performance of SimCode: time 1.794e-06/0.4015, allocations: 0 / 453.1 MB, free: 105.4 MB / 378.7 MB Notification: Performance of Templates: time 0.08003/0.4815, allocations: 66.37 MB / 0.5073 GB, free: 42.24 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 4.035808741115034]