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.0008998/0.0008998, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001543/0.001543, allocations: 169 kB / 24.91 MB, free: 8.723 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.9289/0.9289, allocations: 177.1 MB / 205.3 MB, free: 4.492 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 3.366e-06/3.366e-06, allocations: 4 kB / 273.5 MB, free: 4.395 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.147e-05/1.484e-05, allocations: 6.25 kB / 273.5 MB, free: 4.387 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01482/0.01484, allocations: 24.75 MB / 298.2 MB, free: 11.56 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02262/0.03746, allocations: 21.64 MB / 319.9 MB, free: 5.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002985/0.04045, allocations: 269.1 kB / 320.1 MB, free: 5.574 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002784/0.04323, allocations: 1.746 MB / 321.9 MB, free: 3.812 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007358/0.05059, allocations: 3.4 MB / 325.3 MB, free: 396 kB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003509/0.0541, allocations: 1.59 MB / 326.9 MB, free: 14.79 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01218/0.06627, allocations: 13.39 MB / 340.3 MB, free: 1.355 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009985/0.06727, allocations: 0.5531 MB / 340.8 MB, free: 0.75 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1163/0.1836, allocations: 5.943 MB / 346.8 MB, free: 28.08 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002796/0.1864, allocations: 1.564 MB / 348.3 MB, free: 28.08 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002952/0.1867, allocations: 132.2 kB / 348.5 MB, free: 28.08 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002469/0.1891, allocations: 1.312 MB / 349.8 MB, free: 28.08 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002819/0.1894, allocations: 0.6199 MB / 350.4 MB, free: 28.08 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009774/0.1904, allocations: 1.417 MB / 351.8 MB, free: 28.08 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003083/0.1935, allocations: 4.649 MB / 356.5 MB, free: 27.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.1935, allocations: 0 / 356.5 MB, free: 27.45 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1935, allocations: 3.375 kB / 356.5 MB, free: 27.45 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.349e-05/0.1935, allocations: 2.469 kB / 356.5 MB, free: 27.45 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.00389/0.1974, allocations: 6.771 MB / 363.2 MB, free: 23.65 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.1974, allocations: 10.34 kB / 363.2 MB, free: 23.65 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004433/0.1979, allocations: 0.528 MB / 363.8 MB, free: 23.65 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002945/0.2008, allocations: 3.922 MB / 367.7 MB, free: 22.05 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.455e-05/0.2009, allocations: 66.78 kB / 367.8 MB, free: 22.05 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/0.201, allocations: 104 kB / 367.9 MB, free: 22.04 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000726/0.2017, allocations: 0.7841 MB / 368.6 MB, free: 21.95 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.2017, allocations: 0 / 368.6 MB, free: 21.95 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.882e-05/0.2018, allocations: 45.52 kB / 368.7 MB, free: 21.95 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.206e-05/0.2018, allocations: 33.56 kB / 368.7 MB, free: 21.95 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005819/0.2024, allocations: 429.3 kB / 369.1 MB, free: 21.92 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003353/0.2058, allocations: 2.896 MB / 372 MB, free: 21.26 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003882/0.2061, allocations: 470.8 kB / 372.5 MB, free: 20.9 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004097/0.2066, allocations: 0.6391 MB / 373.1 MB, free: 20.45 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04877/0.2553, allocations: 45.52 MB / 418.7 MB, free: 7.535 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006244/0.256, allocations: 344 kB / 419 MB, free: 7.203 MB / 346.7 MB Notification: Performance of pre-optimization done (n=85): time 4.599e-06/0.256, allocations: 0 / 419 MB, free: 7.203 MB / 346.7 MB Notification: Performance of matching and sorting (n=85): time 0.002262/0.2582, allocations: 0.847 MB / 419.8 MB, free: 6.359 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.143e-05/0.2583, allocations: 60.06 kB / 419.9 MB, free: 6.289 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006269/0.2645, allocations: 5.071 MB / 425 MB, free: 2.312 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001891/0.2647, allocations: 41.69 kB / 425 MB, free: 2.266 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001176/0.2659, allocations: 1.382 MB / 426.4 MB, free: 1.199 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003647/0.2663, allocations: 317.7 kB / 426.7 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004867/0.2668, allocations: 343.3 kB / 427 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.2669, allocations: 305.1 kB / 427.3 MB, free: 308 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003472/0.2672, allocations: 135.9 kB / 427.5 MB, free: 172 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007862/0.268, allocations: 0.842 MB / 428.3 MB, free: 15.04 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001374/0.2694, allocations: 1.168 MB / 429.5 MB, free: 13.68 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.548e-05/0.2694, allocations: 10.44 kB / 429.5 MB, free: 13.67 MB / 362.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002928/0.2723, allocations: 1.287 MB / 430.8 MB, free: 12.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.134e-05/0.2723, allocations: 16 kB / 430.8 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001709/0.2725, allocations: 43.98 kB / 430.8 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.74e-05/0.2726, allocations: 32 kB / 430.9 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/0.2738, allocations: 398.3 kB / 431.3 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.211e-05/0.2739, allocations: 50.75 kB / 431.3 MB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002391/0.2762, allocations: 181.2 kB / 431.5 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001827/0.2764, allocations: 72 kB / 431.5 MB, free: 11.8 MB / 362.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.0008131/0.2772, allocations: 217.1 kB / 431.8 MB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008464/0.2781, allocations: 475.4 kB / 432.2 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003211/0.2813, allocations: 1.478 MB / 433.7 MB, free: 9.68 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.369e-05/0.2813, allocations: 11.94 kB / 433.7 MB, free: 9.668 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.2813, allocations: 0 / 433.7 MB, free: 9.668 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.2813, allocations: 3.984 kB / 433.7 MB, free: 9.664 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004741/0.2861, allocations: 2.768 MB / 436.5 MB, free: 7.617 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001275/0.2862, allocations: 16 kB / 436.5 MB, free: 7.602 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007684/0.287, allocations: 184.3 kB / 436.7 MB, free: 7.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.294e-06/0.287, allocations: 0 / 436.7 MB, free: 7.43 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.754e-05/0.2871, allocations: 24 kB / 436.7 MB, free: 7.406 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.553e-06/0.2871, allocations: 4 kB / 436.7 MB, free: 7.402 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.2871, allocations: 2.75 kB / 436.7 MB, free: 7.402 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002298/0.2894, allocations: 1.063 MB / 437.8 MB, free: 6.328 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001929/0.2913, allocations: 0.7368 MB / 438.5 MB, free: 5.586 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006279/0.2919, allocations: 15.98 kB / 438.5 MB, free: 5.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/0.293, allocations: 23.98 kB / 438.6 MB, free: 5.547 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002161/0.2933, allocations: 60.55 kB / 438.6 MB, free: 5.488 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001247/0.2934, allocations: 24 kB / 438.6 MB, free: 5.465 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003325/0.2967, allocations: 2.728 MB / 441.4 MB, free: 3.113 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.2967, allocations: 0 / 441.4 MB, free: 3.113 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003498/0.3002, allocations: 1.089 MB / 442.5 MB, free: 2.023 MB / 362.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.00229/0.3025, allocations: 1.451 MB / 443.9 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001574/0.3041, allocations: 0.8377 MB / 444.7 MB, free: 4 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.00014/0.3042, allocations: 81.86 kB / 444.8 MB, free: 15.92 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006076/0.3048, allocations: 437.9 kB / 445.2 MB, free: 15.47 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005524/0.3103, allocations: 1.195 MB / 446.4 MB, free: 14.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01095/0.3213, allocations: 7.559 MB / 454 MB, free: 6.648 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006241/0.3219, allocations: 0.6933 MB / 454.7 MB, free: 5.934 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002331/0.3242, allocations: 0.6846 MB / 455.4 MB, free: 5.246 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002486/0.3267, allocations: 1.069 MB / 456.4 MB, free: 4.16 MB / 378.7 MB Notification: Performance of SimCode: time 1.713e-06/0.3267, allocations: 0 / 456.4 MB, free: 4.16 MB / 378.7 MB Notification: Performance of Templates: time 0.2006/0.5273, allocations: 66.3 MB / 0.5105 GB, free: 129 MB / 410.7 MB " [Timeout remaining time 659] 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 -s gbode -gbm=radauIIA3 -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: 3.9365380010567605]