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.001917/0.001917, allocations: 91.61 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.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.002042/0.002042, allocations: 165.3 kB / 24.27 MB, free: 152 kB / 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 1.59/1.59, allocations: 177.1 MB / 204.6 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 178] 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 1.433e-06/1.433e-06, allocations: 0 / 272.3 MB, free: 1.863 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.487e-05/2.63e-05, allocations: 2.312 kB / 272.3 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1364/0.1365, allocations: 25.29 MB / 297.6 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02426/0.1607, allocations: 21.39 MB / 319 MB, free: 1.062 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004822/0.1655, allocations: 270.3 kB / 319.3 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004287/0.1698, allocations: 1.681 MB / 320.9 MB, free: 15.61 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01237/0.1822, allocations: 3.429 MB / 324.4 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005576/0.1878, allocations: 1.636 MB / 326 MB, free: 11.5 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.02458/0.2123, allocations: 13.24 MB / 339.2 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001512/0.2139, allocations: 0.4893 MB / 339.7 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004953/0.2188, allocations: 2.98 MB / 342.7 MB, free: 11.1 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002693/0.2215, allocations: 1.51 MB / 344.2 MB, free: 9.582 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004592/0.222, allocations: 136 kB / 344.3 MB, free: 9.449 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004515/0.2265, allocations: 1.268 MB / 345.6 MB, free: 8.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007418/0.2272, allocations: 0.6048 MB / 346.2 MB, free: 7.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003157/0.2304, allocations: 1.41 MB / 347.6 MB, free: 6.156 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01165/0.242, allocations: 6.526 MB / 354.2 MB, free: 15.6 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.054e-05/0.242, allocations: 0 / 354.2 MB, free: 15.6 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.242, allocations: 0 / 354.2 MB, free: 15.6 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003774/0.2424, allocations: 0 / 354.2 MB, free: 15.6 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.01366/0.2561, allocations: 7.445 MB / 361.6 MB, free: 8.07 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.2561, allocations: 12.03 kB / 361.6 MB, free: 8.059 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001306/0.2574, allocations: 0.8506 MB / 362.5 MB, free: 7.203 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009539/0.267, allocations: 4.964 MB / 367.4 MB, free: 2.121 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.84e-05/0.2671, allocations: 66 kB / 367.5 MB, free: 2.055 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002566/0.2673, allocations: 103.9 kB / 367.6 MB, free: 1.953 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002308/0.2696, allocations: 1.129 MB / 368.7 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.322e-05/0.2696, allocations: 0 / 368.7 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001315/0.2698, allocations: 47.92 kB / 368.8 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.157e-05/0.2698, allocations: 31.98 kB / 368.8 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002619/0.2724, allocations: 1.3 MB / 370.1 MB, free: 15.43 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01344/0.2859, allocations: 6.244 MB / 376.3 MB, free: 9.113 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001677/0.2875, allocations: 0.7046 MB / 377.1 MB, free: 8.398 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001575/0.2891, allocations: 0.918 MB / 378 MB, free: 7.477 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06108/0.3502, allocations: 30.31 MB / 408.3 MB, free: 8.426 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001319/0.3515, allocations: 0.5428 MB / 408.8 MB, free: 7.867 MB / 362.7 MB Notification: Performance of pre-optimization done (n=85): time 2.925e-06/0.3515, allocations: 8 kB / 408.8 MB, free: 7.859 MB / 362.7 MB Notification: Performance of matching and sorting (n=85): time 0.004032/0.3556, allocations: 1.864 MB / 410.7 MB, free: 5.988 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.04e-05/0.3556, allocations: 60.06 kB / 410.8 MB, free: 5.918 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01172/0.3673, allocations: 7.508 MB / 418.3 MB, free: 14.42 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001922/0.3675, allocations: 37.7 kB / 418.3 MB, free: 14.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003983/0.3715, allocations: 3.509 MB / 421.8 MB, free: 10.86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004961/0.372, allocations: 329.4 kB / 422.1 MB, free: 10.53 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006951/0.3727, allocations: 460.6 kB / 422.6 MB, free: 10.07 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000245/0.373, allocations: 480.7 kB / 423 MB, free: 9.602 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001083/0.374, allocations: 371.8 kB / 423.4 MB, free: 9.238 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00183/0.3759, allocations: 1.401 MB / 424.8 MB, free: 7.383 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00288/0.3787, allocations: 1.906 MB / 426.7 MB, free: 5.016 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.628e-05/0.3788, allocations: 8 kB / 426.7 MB, free: 5.008 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004317/0.3831, allocations: 2.273 MB / 429 MB, free: 2.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.204e-05/0.3831, allocations: 12 kB / 429 MB, free: 2.719 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002421/0.3834, allocations: 164 kB / 429.2 MB, free: 2.559 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.853e-05/0.3834, allocations: 35.94 kB / 429.2 MB, free: 2.523 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/0.3847, allocations: 363.8 kB / 429.6 MB, free: 2.168 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.905e-05/0.3847, allocations: 43.86 kB / 429.6 MB, free: 2.125 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002147/0.3869, allocations: 190 kB / 429.8 MB, free: 1.941 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002143/0.3871, allocations: 124 kB / 429.9 MB, free: 1.82 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.001589/0.3887, allocations: 0.7577 MB / 430.7 MB, free: 1.051 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001204/0.3899, allocations: 0.7687 MB / 431.4 MB, free: 284 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1193/0.5092, allocations: 2.1 MB / 433.5 MB, free: 125.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-05/0.5092, allocations: 11.78 kB / 433.5 MB, free: 125.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.5092, allocations: 1.062 kB / 433.5 MB, free: 125.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.147e-06/0.5092, allocations: 7.672 kB / 433.6 MB, free: 125.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007591/0.5168, allocations: 4.521 MB / 438.1 MB, free: 124 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001808/0.517, allocations: 138.9 kB / 438.2 MB, free: 124 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007463/0.5178, allocations: 147 kB / 438.4 MB, free: 123.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.5178, allocations: 3.438 kB / 438.4 MB, free: 123.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001001/0.5179, allocations: 62.23 kB / 438.4 MB, free: 123.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/0.5179, allocations: 6 kB / 438.4 MB, free: 123.9 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.5179, allocations: 1 kB / 438.4 MB, free: 123.9 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003459/0.5213, allocations: 2.201 MB / 440.6 MB, free: 123.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001939/0.5233, allocations: 0.8165 MB / 441.4 MB, free: 122.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006327/0.5239, allocations: 13.78 kB / 441.5 MB, free: 122.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001125/0.525, allocations: 28.73 kB / 441.5 MB, free: 122.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002435/0.5253, allocations: 105.1 kB / 441.6 MB, free: 122.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001249/0.5254, allocations: 68.47 kB / 441.7 MB, free: 122.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.005497/0.5309, allocations: 4.178 MB / 445.8 MB, free: 121.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5309, allocations: 0 / 445.8 MB, free: 121.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002018/0.5329, allocations: 1.087 MB / 446.9 MB, free: 121.3 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.001549/0.5345, allocations: 1.299 MB / 448.2 MB, free: 121.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001944/0.5364, allocations: 1.407 MB / 449.6 MB, free: 120.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.5364, allocations: 3.75 kB / 449.6 MB, free: 120.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008917/0.5373, allocations: 0.7371 MB / 450.4 MB, free: 119.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004571/0.5419, allocations: 1.229 MB / 451.6 MB, free: 118.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008505/0.5504, allocations: 8.324 MB / 459.9 MB, free: 110.9 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001253/0.5516, allocations: 2.102 MB / 462 MB, free: 108.8 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001789/0.5534, allocations: 0.6846 MB / 462.7 MB, free: 108.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003137/0.5537, allocations: 288.5 kB / 463 MB, free: 107.8 MB / 378.7 MB Notification: Performance of SimCode: time 1.473e-06/0.5537, allocations: 0 / 463 MB, free: 107.8 MB / 378.7 MB Notification: Performance of Templates: time 0.07991/0.6336, allocations: 57.67 MB / 0.5085 GB, free: 51.13 MB / 378.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 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.719752992037684]