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.001899/0.001899, allocations: 99.86 kB / 20.96 MB, free: 3.461 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.001826/0.001826, allocations: 149.5 kB / 24.26 MB, free: 168 kB / 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 1.543/1.543, allocations: 173.3 MB / 200.8 MB, free: 9.324 MB / 186.7 MB " [Timeout remaining time 178] 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.964e-06/1.964e-06, allocations: 3.938 kB / 267.3 MB, free: 6.75 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.406e-05/3.603e-05, allocations: 2.312 kB / 267.3 MB, free: 6.746 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1924/0.1925, allocations: 25.26 MB / 292.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02409/0.2166, allocations: 21.36 MB / 313.9 MB, free: 6.539 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004323/0.2209, allocations: 268.4 kB / 314.2 MB, free: 6.355 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004265/0.2251, allocations: 1.688 MB / 315.9 MB, free: 5.273 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.013/0.2381, allocations: 3.431 MB / 319.3 MB, free: 2.434 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005851/0.244, allocations: 1.633 MB / 320.9 MB, free: 1.164 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.02224/0.2662, allocations: 13.08 MB / 334 MB, free: 6.477 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001489/0.2677, allocations: 0.4925 MB / 334.5 MB, free: 5.949 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005654/0.2734, allocations: 2.984 MB / 337.5 MB, free: 2.957 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002755/0.2761, allocations: 1.502 MB / 339 MB, free: 1.449 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004757/0.2766, allocations: 136 kB / 339.1 MB, free: 1.316 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004674/0.2813, allocations: 1.264 MB / 340.4 MB, free: 52 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007443/0.282, allocations: 0.6087 MB / 341 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002593/0.2846, allocations: 1.402 MB / 342.4 MB, free: 14.03 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01039/0.295, allocations: 6.526 MB / 348.9 MB, free: 7.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.295, allocations: 0 / 348.9 MB, free: 7.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.295, allocations: 4 kB / 348.9 MB, free: 7.477 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001573/0.2952, allocations: 0 / 348.9 MB, free: 7.477 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.0127/0.3079, allocations: 7.437 MB / 356.4 MB, free: 15.95 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.3079, allocations: 8.922 kB / 356.4 MB, free: 15.94 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001251/0.3092, allocations: 0.8467 MB / 357.2 MB, free: 15.09 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008519/0.3177, allocations: 4.971 MB / 362.2 MB, free: 9.996 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.377e-05/0.3178, allocations: 66.69 kB / 362.3 MB, free: 9.93 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002646/0.318, allocations: 103.9 kB / 362.4 MB, free: 9.828 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002501/0.3205, allocations: 1.125 MB / 363.5 MB, free: 8.688 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.457e-05/0.3206, allocations: 7.938 kB / 363.5 MB, free: 8.68 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002219/0.3208, allocations: 39.94 kB / 363.5 MB, free: 8.641 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.166e-05/0.3209, allocations: 43.91 kB / 363.6 MB, free: 8.598 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003259/0.3241, allocations: 1.301 MB / 364.9 MB, free: 7.297 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01336/0.3375, allocations: 6.252 MB / 371.1 MB, free: 0.9805 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001704/0.3392, allocations: 0.7085 MB / 371.9 MB, free: 264 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001663/0.3408, allocations: 0.9174 MB / 372.8 MB, free: 15.33 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06194/0.4028, allocations: 30.23 MB / 403 MB, free: 364 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001098/0.4039, allocations: 0.5583 MB / 403.6 MB, free: 15.79 MB / 362.7 MB Notification: Performance of pre-optimization done (n=85): time 3.146e-06/0.4039, allocations: 0 / 403.6 MB, free: 15.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=85): time 0.003867/0.4078, allocations: 1.857 MB / 405.4 MB, free: 13.92 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.432e-05/0.4078, allocations: 64 kB / 405.5 MB, free: 13.85 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01147/0.4193, allocations: 7.512 MB / 413 MB, free: 6.348 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001951/0.4195, allocations: 45.7 kB / 413 MB, free: 6.297 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004053/0.4235, allocations: 3.502 MB / 416.5 MB, free: 2.781 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004752/0.424, allocations: 329.4 kB / 416.9 MB, free: 2.457 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009314/0.4249, allocations: 460.7 kB / 417.3 MB, free: 2 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002516/0.4252, allocations: 484.7 kB / 417.8 MB, free: 1.523 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008708/0.4261, allocations: 371.8 kB / 418.1 MB, free: 1.16 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001838/0.4279, allocations: 1.393 MB / 419.5 MB, free: 15.31 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002878/0.4308, allocations: 1.909 MB / 421.4 MB, free: 12.95 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.718e-05/0.4308, allocations: 8 kB / 421.5 MB, free: 12.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004536/0.4353, allocations: 2.269 MB / 423.7 MB, free: 10.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.325e-05/0.4354, allocations: 16 kB / 423.7 MB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002399/0.4356, allocations: 160 kB / 423.9 MB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.489e-05/0.4357, allocations: 36 kB / 423.9 MB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00153/0.4372, allocations: 359.8 kB / 424.3 MB, free: 10.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.568e-05/0.4372, allocations: 51.8 kB / 424.3 MB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00239/0.4396, allocations: 186.6 kB / 424.5 MB, free: 9.867 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002313/0.4399, allocations: 120 kB / 424.6 MB, free: 9.75 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.001737/0.4416, allocations: 0.7577 MB / 425.4 MB, free: 8.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00122/0.4428, allocations: 0.7726 MB / 426.2 MB, free: 8.203 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004788/0.4476, allocations: 2.108 MB / 428.3 MB, free: 6.094 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/0.4476, allocations: 8 kB / 428.3 MB, free: 6.086 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.4476, allocations: 0 / 428.3 MB, free: 6.086 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.4476, allocations: 3.984 kB / 428.3 MB, free: 6.082 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008144/0.4558, allocations: 4.534 MB / 432.8 MB, free: 1.488 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002112/0.456, allocations: 140 kB / 433 MB, free: 1.352 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00078/0.4568, allocations: 147.8 kB / 433.1 MB, free: 1.207 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.292e-06/0.4568, allocations: 0 / 433.1 MB, free: 1.207 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001081/0.4569, allocations: 59.98 kB / 433.2 MB, free: 1.148 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.235e-06/0.4569, allocations: 4.938 kB / 433.2 MB, free: 1.145 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/0.4569, allocations: 7.938 kB / 433.2 MB, free: 1.137 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1204/0.5773, allocations: 2.195 MB / 435.4 MB, free: 128.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001874/0.5791, allocations: 0.8133 MB / 436.2 MB, free: 128.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005507/0.5797, allocations: 16.95 kB / 436.2 MB, free: 128.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001068/0.5808, allocations: 25.5 kB / 436.2 MB, free: 128.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002469/0.581, allocations: 104.8 kB / 436.3 MB, free: 128.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001263/0.5811, allocations: 74.25 kB / 436.4 MB, free: 128.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.005882/0.587, allocations: 4.177 MB / 440.6 MB, free: 127.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.587, allocations: 0 / 440.6 MB, free: 127.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002731/0.5898, allocations: 1.082 MB / 441.7 MB, free: 127.9 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.001755/0.5915, allocations: 1.295 MB / 442.9 MB, free: 127.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00231/0.5938, allocations: 1.414 MB / 444.4 MB, free: 127.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.5938, allocations: 0 / 444.4 MB, free: 127.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009206/0.5947, allocations: 0.7376 MB / 445.1 MB, free: 126.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004723/0.5995, allocations: 1.225 MB / 446.3 MB, free: 126.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008525/0.608, allocations: 8.328 MB / 454.7 MB, free: 121.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001314/0.6093, allocations: 2.105 MB / 456.8 MB, free: 120.4 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001927/0.6112, allocations: 0.6815 MB / 457.4 MB, free: 119.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003124/0.6115, allocations: 282.5 kB / 457.7 MB, free: 119.6 MB / 378.7 MB Notification: Performance of SimCode: time 1.592e-06/0.6115, allocations: 0 / 457.7 MB, free: 119.6 MB / 378.7 MB Notification: Performance of Templates: time 0.07776/0.6893, allocations: 57.65 MB / 0.5033 GB, free: 63.1 MB / 378.7 MB " [Timeout remaining time 659] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.787894975976087]