Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.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.001654/0.001654, allocations: 120.5 kB / 18.46 MB, free: 4.617 MB / 14.72 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.001735/0.001735, allocations: 194.6 kB / 21.4 MB, free: 1.684 MB / 14.72 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.506/1.506, allocations: 225.6 MB / 249.8 MB, free: 3.621 MB / 190.1 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.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 55.92 kB / 366.8 MB, free: 364 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1026, allocations: 52.14 MB / 418.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009102/0.1117, allocations: 8.058 MB / 427 MB, free: 4.023 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02403/0.1358, allocations: 19.49 MB / 446.5 MB, free: 472 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00185/0.1376, allocations: 59.5 kB / 446.5 MB, free: 412 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2332/0.3708, allocations: 0.8545 MB / 447.4 MB, free: 7.746 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005511/0.3763, allocations: 1.817 MB / 449.2 MB, free: 7.719 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004248/0.3805, allocations: 1.342 MB / 450.6 MB, free: 7.691 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006428/0.387, allocations: 3.263 MB / 453.8 MB, free: 7.633 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003975/0.3874, allocations: 134.1 kB / 454 MB, free: 7.574 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001133/0.3885, allocations: 0.5651 MB / 454.5 MB, free: 7.547 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009641/0.3895, allocations: 0.5637 MB / 455.1 MB, free: 7.344 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000129/0.3896, allocations: 41.66 kB / 455.1 MB, free: 7.344 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004483/0.3941, allocations: 1.442 MB / 456.6 MB, free: 7.289 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002548/0.3943, allocations: 171.4 kB / 456.7 MB, free: 7.223 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009902/0.3953, allocations: 0.6763 MB / 457.4 MB, free: 6.953 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004625/0.4, allocations: 2.219 MB / 459.6 MB, free: 6.535 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.363e-06/0.4, allocations: 2.922 kB / 459.6 MB, free: 6.535 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.4, allocations: 0 / 459.6 MB, free: 6.535 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.935e-05/0.4, allocations: 0 / 459.6 MB, free: 6.535 MB / 366.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.003284/0.4033, allocations: 2.068 MB / 461.7 MB, free: 5.258 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.4033, allocations: 10.36 kB / 461.7 MB, free: 5.258 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000288/0.4036, allocations: 201.3 kB / 461.9 MB, free: 5.152 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001908/0.4055, allocations: 1.37 MB / 463.3 MB, free: 4.617 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.797e-05/0.4056, allocations: 19.88 kB / 463.3 MB, free: 4.617 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.364e-05/0.4056, allocations: 26.61 kB / 463.3 MB, free: 4.617 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000922/0.4066, allocations: 430.5 kB / 463.7 MB, free: 4.578 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.4066, allocations: 0 / 463.7 MB, free: 4.578 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.405e-05/0.4066, allocations: 13.58 kB / 463.8 MB, free: 4.578 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.454e-05/0.4066, allocations: 9.078 kB / 463.8 MB, free: 4.578 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001095/0.4077, allocations: 475 kB / 464.2 MB, free: 4.566 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002766/0.4105, allocations: 1.623 MB / 465.9 MB, free: 4.168 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000912/0.4114, allocations: 342.6 kB / 466.2 MB, free: 4.137 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006986/0.4121, allocations: 382.6 kB / 466.6 MB, free: 4.117 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01534/0.4274, allocations: 15.21 MB / 481.8 MB, free: 7.738 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000655/0.4281, allocations: 261 kB / 482 MB, free: 7.574 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.124e-06/0.4281, allocations: 0 / 482 MB, free: 7.574 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002265/0.4304, allocations: 0.8387 MB / 482.9 MB, free: 7.113 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.233e-05/0.4304, allocations: 60.89 kB / 482.9 MB, free: 7.047 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001885/0.4323, allocations: 1.453 MB / 484.4 MB, free: 6.234 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.958e-05/0.4324, allocations: 31.8 kB / 484.4 MB, free: 6.199 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006658/0.433, allocations: 0.733 MB / 485.1 MB, free: 5.543 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.4331, allocations: 96.06 kB / 485.2 MB, free: 5.465 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001918/0.4333, allocations: 129 kB / 485.4 MB, free: 5.387 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.4335, allocations: 322.9 kB / 485.7 MB, free: 5.07 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004529/0.4339, allocations: 166.8 kB / 485.8 MB, free: 4.996 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006202/0.4346, allocations: 355.8 kB / 486.2 MB, free: 4.664 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001031/0.4356, allocations: 0.5396 MB / 486.7 MB, free: 4.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.848e-06/0.4356, allocations: 6.219 kB / 486.7 MB, free: 4.227 MB / 382.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001528/0.4371, allocations: 0.7576 MB / 487.5 MB, free: 3.852 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.4371, allocations: 7.812 kB / 487.5 MB, free: 3.852 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.939e-05/0.4372, allocations: 43.62 kB / 487.5 MB, free: 3.848 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003224/0.4375, allocations: 132.9 kB / 487.7 MB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004032/0.4379, allocations: 104.1 kB / 487.8 MB, free: 3.785 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006867/0.4386, allocations: 0.6834 MB / 488.5 MB, free: 3.199 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007283/0.4393, allocations: 79.41 kB / 488.5 MB, free: 3.148 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.414e-05/0.4394, allocations: 34.31 kB / 488.6 MB, free: 3.145 MB / 382.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.0004465/0.4399, allocations: 277 kB / 488.8 MB, free: 2.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002112/0.4401, allocations: 193.5 kB / 489 MB, free: 2.828 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001819/0.4419, allocations: 0.7467 MB / 489.8 MB, free: 2.434 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.4419, allocations: 5 kB / 489.8 MB, free: 2.434 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-05/0.4419, allocations: 0 / 489.8 MB, free: 2.434 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.4419, allocations: 4.547 kB / 489.8 MB, free: 2.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002347/0.4443, allocations: 1.305 MB / 491.1 MB, free: 1.539 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.061e-05/0.4443, allocations: 32.44 kB / 491.1 MB, free: 1.539 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002482/0.4446, allocations: 47.17 kB / 491.2 MB, free: 1.523 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002392/0.4448, allocations: 133.2 kB / 491.3 MB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.743e-05/0.4448, allocations: 18.22 kB / 491.3 MB, free: 1.477 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006322/0.4455, allocations: 0.6728 MB / 492 MB, free: 0.8945 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.4455, allocations: 1.125 kB / 492 MB, free: 0.8945 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001365/0.4468, allocations: 0.7149 MB / 492.7 MB, free: 476 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004569/0.4473, allocations: 295.5 kB / 493 MB, free: 224 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000148/0.4474, allocations: 10.09 kB / 493 MB, free: 216 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000435/0.4479, allocations: 27.91 kB / 493 MB, free: 204 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/0.448, allocations: 37.23 kB / 493.1 MB, free: 188 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.365e-05/0.448, allocations: 23.75 kB / 493.1 MB, free: 184 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001243/0.4493, allocations: 0.967 MB / 494 MB, free: 15.39 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4493, allocations: 0 / 494 MB, free: 15.39 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001013/0.4503, allocations: 331.6 kB / 494.4 MB, free: 15.07 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.0009037/0.4512, allocations: 0.5799 MB / 495 MB, free: 14.59 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001385/0.4526, allocations: 0.493 MB / 495.4 MB, free: 14.09 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.4526, allocations: 0 / 495.4 MB, free: 14.09 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006905/0.4533, allocations: 284.3 kB / 495.7 MB, free: 13.8 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001445/0.4547, allocations: 310.9 kB / 496 MB, free: 13.51 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003754/0.4585, allocations: 2.287 MB / 498.3 MB, free: 11.18 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000805/0.4593, allocations: 1.145 MB / 499.5 MB, free: 10 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002044/0.4595, allocations: 95.44 kB / 499.6 MB, free: 9.906 MB / 398.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4595, allocations: 0 / 499.6 MB, free: 9.906 MB / 398.1 MB Notification: Performance of Templates: time 0.03473/0.4942, allocations: 25.95 MB / 0.5132 GB, free: 52 kB / 414.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.361802825937048]