Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001321/0.001321, allocations: 84.06 kB / 20.5 MB, free: 1.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001455/0.001455, allocations: 163.6 kB / 23.74 MB, free: 4.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.654/1.654, allocations: 177.1 MB / 204 MB, free: 9.215 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002282/0.002282, allocations: 62.14 kB / 324.8 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09481/0.09709, allocations: 53.38 MB / 378.1 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02519/0.1223, allocations: 22.25 MB / 400.4 MB, free: 9.406 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03183/0.1541, allocations: 19.55 MB / 419.9 MB, free: 5.777 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004987/0.1591, allocations: 269.1 kB / 420.2 MB, free: 5.512 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005397/0.1645, allocations: 1.683 MB / 421.9 MB, free: 3.812 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01195/0.1764, allocations: 3.311 MB / 425.2 MB, free: 488 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005837/0.1823, allocations: 1.594 MB / 426.8 MB, free: 14.88 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02139/0.2037, allocations: 12.97 MB / 439.8 MB, free: 1.871 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001281/0.205, allocations: 492.4 kB / 440.2 MB, free: 1.355 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005577/0.2105, allocations: 3.246 MB / 443.5 MB, free: 14.1 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003808/0.2143, allocations: 2.014 MB / 445.5 MB, free: 12.07 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006385/0.215, allocations: 140 kB / 445.6 MB, free: 11.93 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004108/0.2191, allocations: 1.249 MB / 446.9 MB, free: 10.68 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007642/0.2198, allocations: 0.6049 MB / 447.5 MB, free: 10.07 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002755/0.2226, allocations: 1.936 MB / 449.4 MB, free: 8.125 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009275/0.2319, allocations: 6.738 MB / 456.2 MB, free: 1.355 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.2319, allocations: 0 / 456.2 MB, free: 1.355 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2319, allocations: 0 / 456.2 MB, free: 1.355 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001617/0.232, allocations: 0 / 456.2 MB, free: 1.355 MB / 414.1 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.01117/0.2432, allocations: 6.859 MB / 463 MB, free: 10.41 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.2433, allocations: 15.98 kB / 463 MB, free: 10.4 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001081/0.2443, allocations: 0.7764 MB / 463.8 MB, free: 9.617 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007693/0.252, allocations: 4.375 MB / 468.2 MB, free: 5.121 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.32e-05/0.2521, allocations: 66 kB / 468.3 MB, free: 5.055 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002625/0.2524, allocations: 103.9 kB / 468.4 MB, free: 4.953 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002419/0.2548, allocations: 1.309 MB / 469.7 MB, free: 3.629 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.326e-05/0.2548, allocations: 0 / 469.7 MB, free: 3.629 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001247/0.2549, allocations: 36 kB / 469.7 MB, free: 3.594 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.07e-05/0.255, allocations: 39.97 kB / 469.7 MB, free: 3.555 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002734/0.2577, allocations: 1.488 MB / 471.2 MB, free: 2.062 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2121/0.4698, allocations: 5.106 MB / 476.3 MB, free: 85.11 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001929/0.4718, allocations: 0.8783 MB / 477.2 MB, free: 84.74 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001596/0.4734, allocations: 1.058 MB / 478.3 MB, free: 84.26 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04716/0.5205, allocations: 27.09 MB / 0.4935 GB, free: 65.71 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009155/0.5214, allocations: 0.5543 MB / 0.4941 GB, free: 65.15 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 3.676e-06/0.5214, allocations: 4 kB / 0.4941 GB, free: 65.15 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.003811/0.5253, allocations: 1.908 MB / 0.4959 GB, free: 63.61 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.607e-05/0.5253, allocations: 64.06 kB / 0.496 GB, free: 63.54 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006096/0.5314, allocations: 5.628 MB / 0.5015 GB, free: 57.96 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000162/0.5316, allocations: 45.69 kB / 0.5015 GB, free: 57.91 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001697/0.5332, allocations: 2.955 MB / 0.5044 GB, free: 55.02 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002558/0.5335, allocations: 314.2 kB / 0.5047 GB, free: 54.75 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004402/0.5339, allocations: 430.9 kB / 0.5051 GB, free: 54.33 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.909e-05/0.534, allocations: 301.1 kB / 0.5054 GB, free: 54.03 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007508/0.5347, allocations: 399.8 kB / 0.5058 GB, free: 53.64 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001023/0.5358, allocations: 1.094 MB / 0.5069 GB, free: 52.23 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001775/0.5375, allocations: 1.613 MB / 0.5084 GB, free: 50.31 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.339e-05/0.5375, allocations: 13.72 kB / 0.5084 GB, free: 50.3 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003228/0.5408, allocations: 2.243 MB / 0.5106 GB, free: 48.07 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.552e-05/0.5408, allocations: 14.97 kB / 0.5106 GB, free: 48.06 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001597/0.541, allocations: 164 kB / 0.5108 GB, free: 47.9 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.536e-05/0.541, allocations: 32 kB / 0.5108 GB, free: 47.87 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001092/0.5421, allocations: 367 kB / 0.5112 GB, free: 47.51 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.914e-05/0.5421, allocations: 47.8 kB / 0.5112 GB, free: 47.46 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001908/0.544, allocations: 193.2 kB / 0.5114 GB, free: 47.32 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001503/0.5442, allocations: 120 kB / 0.5115 GB, free: 47.2 MB / 430.1 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.001175/0.5453, allocations: 0.7187 MB / 0.5122 GB, free: 46.49 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006669/0.546, allocations: 0.7461 MB / 0.513 GB, free: 45.74 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003992/0.55, allocations: 2.16 MB / 0.5151 GB, free: 43.61 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/0.55, allocations: 8 kB / 0.5151 GB, free: 43.6 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.55, allocations: 0 / 0.5151 GB, free: 43.6 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.55, allocations: 3.984 kB / 0.5151 GB, free: 43.59 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005126/0.5552, allocations: 3.36 MB / 0.5184 GB, free: 40.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001428/0.5553, allocations: 140.1 kB / 0.5185 GB, free: 40.06 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007514/0.556, allocations: 155.7 kB / 0.5186 GB, free: 39.91 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/0.5561, allocations: 4 kB / 0.5186 GB, free: 39.9 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.258e-05/0.5561, allocations: 65.3 kB / 0.5187 GB, free: 39.84 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.04e-06/0.5561, allocations: 0 / 0.5187 GB, free: 39.84 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.5561, allocations: 4 kB / 0.5187 GB, free: 39.84 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00291/0.5591, allocations: 2.19 MB / 0.5208 GB, free: 37.62 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001565/0.5606, allocations: 0.7821 MB / 0.5216 GB, free: 36.84 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005773/0.5612, allocations: 16 kB / 0.5216 GB, free: 36.82 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00113/0.5623, allocations: 27.97 kB / 0.5217 GB, free: 36.79 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002009/0.5625, allocations: 104.5 kB / 0.5218 GB, free: 36.69 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001058/0.5626, allocations: 71.98 kB / 0.5218 GB, free: 36.62 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004229/0.5669, allocations: 3.612 MB / 0.5253 GB, free: 33.04 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5669, allocations: 0 / 0.5253 GB, free: 33.04 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002418/0.5693, allocations: 1.083 MB / 0.5264 GB, free: 32.02 MB / 430.1 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.001529/0.5708, allocations: 1.188 MB / 0.5276 GB, free: 30.9 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002142/0.573, allocations: 1.362 MB / 0.5289 GB, free: 29.49 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.573, allocations: 0 / 0.5289 GB, free: 29.49 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009277/0.5739, allocations: 0.7365 MB / 0.5296 GB, free: 28.71 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00497/0.5789, allocations: 1.169 MB / 0.5308 GB, free: 27.54 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009892/0.5887, allocations: 8.26 MB / 0.5388 GB, free: 19.25 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001313/0.5901, allocations: 2.101 MB / 0.5409 GB, free: 17.11 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002153/0.5922, allocations: 0.6846 MB / 0.5415 GB, free: 16.43 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004573/0.5927, allocations: 288.5 kB / 0.5418 GB, free: 16.14 MB / 430.1 MB Notification: Performance of SimCode: time 1.774e-06/0.5927, allocations: 0 / 0.5418 GB, free: 16.14 MB / 430.1 MB Notification: Performance of Templates: time 0.1029/0.6956, allocations: 57.85 MB / 0.5983 GB, free: 7.043 MB / 478.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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: 7.138273518532515]