Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.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.001754/0.001754, allocations: 109.1 kB / 21.18 MB, free: 0.7852 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.002104/0.002104, allocations: 218 kB / 24.5 MB, free: 4.172 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.581/1.581, allocations: 230.5 MB / 258.1 MB, free: 8.012 MB / 206.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.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002037/0.002037, allocations: 67.91 kB / 379 MB, free: 2.535 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.318/0.32, allocations: 53.42 MB / 432.4 MB, free: 6.773 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009032/0.329, allocations: 8.068 MB / 440.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02326/0.3523, allocations: 19.55 MB / 460.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001163/0.3535, allocations: 90.94 kB / 460.2 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002459/0.3559, allocations: 0.8538 MB / 461 MB, free: 10.1 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006927/0.3628, allocations: 1.835 MB / 462.8 MB, free: 8.25 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004481/0.3673, allocations: 1.359 MB / 464.2 MB, free: 6.891 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005885/0.3732, allocations: 3.318 MB / 467.5 MB, free: 3.562 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003839/0.3736, allocations: 132.8 kB / 467.6 MB, free: 3.406 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009359/0.3745, allocations: 0.5873 MB / 468.2 MB, free: 2.816 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008783/0.3754, allocations: 0.559 MB / 468.8 MB, free: 2.254 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001387/0.3756, allocations: 44 kB / 468.8 MB, free: 2.211 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006083/0.3816, allocations: 1.447 MB / 470.3 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003917/0.382, allocations: 170.8 kB / 470.5 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001346/0.3834, allocations: 0.6793 MB / 471.1 MB, free: 15.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006338/0.3897, allocations: 2.225 MB / 473.4 MB, free: 13.68 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.932e-06/0.3897, allocations: 0 / 473.4 MB, free: 13.68 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3897, allocations: 0 / 473.4 MB, free: 13.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.53e-05/0.3898, allocations: 0 / 473.4 MB, free: 13.68 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.004914/0.3947, allocations: 1.994 MB / 475.3 MB, free: 11.64 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/0.3947, allocations: 15.97 kB / 475.4 MB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003721/0.3951, allocations: 198.7 kB / 475.6 MB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003261/0.3984, allocations: 1.26 MB / 476.8 MB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.729e-05/0.3984, allocations: 20.66 kB / 476.8 MB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/0.3985, allocations: 24 kB / 476.9 MB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001592/0.4001, allocations: 437.8 kB / 477.3 MB, free: 9.613 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/0.4001, allocations: 3.938 kB / 477.3 MB, free: 9.609 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.819e-05/0.4002, allocations: 8 kB / 477.3 MB, free: 9.602 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.134e-05/0.4002, allocations: 12 kB / 477.3 MB, free: 9.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00185/0.4021, allocations: 478.3 kB / 477.8 MB, free: 9.121 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005556/0.4076, allocations: 1.558 MB / 479.3 MB, free: 7.504 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001768/0.4094, allocations: 347.3 kB / 479.7 MB, free: 7.152 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001383/0.4108, allocations: 365.9 kB / 480 MB, free: 6.793 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02647/0.4372, allocations: 7.035 MB / 487.1 MB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001149/0.4384, allocations: 255.9 kB / 487.3 MB, free: 15.29 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 4.518e-06/0.4384, allocations: 0 / 487.3 MB, free: 15.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.003947/0.4423, allocations: 0.7704 MB / 488.1 MB, free: 14.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.163e-05/0.4424, allocations: 67.33 kB / 488.2 MB, free: 14.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003749/0.4462, allocations: 1.459 MB / 489.6 MB, free: 12.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.518e-05/0.4462, allocations: 33.7 kB / 489.6 MB, free: 12.89 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001126/0.4474, allocations: 0.7232 MB / 490.4 MB, free: 12.16 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001805/0.4476, allocations: 91.27 kB / 490.5 MB, free: 12.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003342/0.4479, allocations: 130 kB / 490.6 MB, free: 11.94 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002319/0.4481, allocations: 326 kB / 490.9 MB, free: 11.62 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008961/0.449, allocations: 164.8 kB / 491.1 MB, free: 11.46 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001136/0.4502, allocations: 358.9 kB / 491.4 MB, free: 11.01 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001906/0.4521, allocations: 0.5411 MB / 492 MB, free: 10.38 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.335e-06/0.4521, allocations: 0 / 492 MB, free: 10.38 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002966/0.455, allocations: 0.7558 MB / 492.7 MB, free: 9.613 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.966e-05/0.4551, allocations: 10.5 kB / 492.7 MB, free: 9.605 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001064/0.4552, allocations: 44 kB / 492.8 MB, free: 9.562 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005209/0.4557, allocations: 133.3 kB / 492.9 MB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006823/0.4564, allocations: 111.8 kB / 493 MB, free: 9.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001137/0.4575, allocations: 0.6772 MB / 493.7 MB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001208/0.4587, allocations: 71.59 kB / 493.8 MB, free: 8.547 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001302/0.4588, allocations: 40.06 kB / 493.8 MB, free: 8.508 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0008049/0.4597, allocations: 273.9 kB / 494.1 MB, free: 8.234 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005593/0.4602, allocations: 202.7 kB / 494.3 MB, free: 8.035 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00322/0.4634, allocations: 0.7347 MB / 495 MB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/0.4634, allocations: 0 / 495 MB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.421e-06/0.4634, allocations: 4 kB / 495 MB, free: 7.281 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.4635, allocations: 0 / 495 MB, free: 7.281 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002715/0.4662, allocations: 1.283 MB / 496.3 MB, free: 5.938 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.625e-05/0.4662, allocations: 36.06 kB / 496.3 MB, free: 5.902 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002526/0.4665, allocations: 39.95 kB / 496.4 MB, free: 5.863 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002774/0.4668, allocations: 132.8 kB / 496.5 MB, free: 5.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.162e-05/0.4668, allocations: 19.98 kB / 496.5 MB, free: 5.711 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006488/0.4674, allocations: 0.6694 MB / 497.2 MB, free: 5.016 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.4674, allocations: 7.969 kB / 497.2 MB, free: 5.008 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001427/0.4689, allocations: 0.7062 MB / 497.9 MB, free: 4.273 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005465/0.4694, allocations: 216.6 kB / 498.1 MB, free: 4.062 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002204/0.4696, allocations: 8 kB / 498.1 MB, free: 4.055 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004628/0.4701, allocations: 31.95 kB / 498.1 MB, free: 4.023 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.4702, allocations: 39.95 kB / 498.2 MB, free: 3.984 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.778e-05/0.4703, allocations: 23.94 kB / 498.2 MB, free: 3.961 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001522/0.4718, allocations: 0.961 MB / 499.2 MB, free: 2.98 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4718, allocations: 0 / 499.2 MB, free: 2.98 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000975/0.4728, allocations: 331.6 kB / 499.5 MB, free: 2.656 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009642/0.4737, allocations: 0.5849 MB / 0.4884 GB, free: 2.062 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001379/0.4751, allocations: 0.4894 MB / 0.4888 GB, free: 1.562 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.4751, allocations: 0 / 0.4888 GB, free: 1.562 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006611/0.4758, allocations: 279.3 kB / 0.4891 GB, free: 1.277 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001379/0.4772, allocations: 307 kB / 0.4894 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004137/0.4813, allocations: 2.308 MB / 0.4916 GB, free: 14.61 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009366/0.4822, allocations: 1.149 MB / 0.4928 GB, free: 13.43 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002209/0.4824, allocations: 91.44 kB / 0.4929 GB, free: 13.34 MB / 414.1 MB Notification: Performance of SimCode: time 1.393e-06/0.4824, allocations: 3.938 kB / 0.4929 GB, free: 13.34 MB / 414.1 MB Notification: Performance of Templates: time 0.03866/0.5211, allocations: 25.99 MB / 0.5182 GB, free: 3.41 MB / 430.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,mp.S.v Variables in the result:mp.S.v,time [Calling sys.exit(0), Time elapsed: 9.528152336133644]