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.001353/0.001353, allocations: 100 kB / 21.18 MB, free: 0.6484 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.001411/0.001411, allocations: 187.3 kB / 24.45 MB, free: 3.961 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.414/1.414, allocations: 225.7 MB / 253.3 MB, free: 12.8 MB / 206.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.001646/0.001646, allocations: 51.92 kB / 371.6 MB, free: 9.176 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2335/0.2352, allocations: 52.18 MB / 423.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.01074/0.2459, allocations: 6.912 MB / 430.7 MB, free: 7.527 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03031/0.2762, allocations: 16.66 MB / 447.4 MB, free: 6.801 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001541/0.2778, allocations: 98.88 kB / 447.5 MB, free: 6.703 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003152/0.2809, allocations: 0.7694 MB / 448.3 MB, free: 5.934 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007327/0.2883, allocations: 1.815 MB / 450.1 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006434/0.2947, allocations: 1.316 MB / 451.4 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00776/0.3025, allocations: 3.275 MB / 454.7 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005945/0.3031, allocations: 132.8 kB / 454.8 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001408/0.3045, allocations: 0.5911 MB / 455.4 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001081/0.3055, allocations: 0.5355 MB / 455.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001661/0.3057, allocations: 44 kB / 456 MB, free: 14.17 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005218/0.3109, allocations: 1.167 MB / 457.1 MB, free: 13 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004806/0.3114, allocations: 166.8 kB / 457.3 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00113/0.3125, allocations: 0.5045 MB / 457.8 MB, free: 12.33 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005915/0.3185, allocations: 2.233 MB / 460 MB, free: 10.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.3185, allocations: 0 / 460 MB, free: 10.09 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.3185, allocations: 4 kB / 460 MB, free: 10.08 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.957e-05/0.3185, allocations: 0 / 460 MB, free: 10.08 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.00444/0.3229, allocations: 1.994 MB / 462 MB, free: 8.043 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.586e-05/0.323, allocations: 19.95 kB / 462 MB, free: 8.023 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003699/0.3234, allocations: 206.7 kB / 462.2 MB, free: 7.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003043/0.3264, allocations: 1.245 MB / 463.5 MB, free: 6.496 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.97e-05/0.3264, allocations: 16.66 kB / 463.5 MB, free: 6.48 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/0.3266, allocations: 31.95 kB / 463.5 MB, free: 6.449 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00132/0.3279, allocations: 433.8 kB / 464 MB, free: 6.023 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.92e-05/0.3279, allocations: 3.938 kB / 464 MB, free: 6.02 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.204e-05/0.328, allocations: 8 kB / 464 MB, free: 6.012 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.543e-05/0.328, allocations: 15.98 kB / 464 MB, free: 5.996 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001342/0.3293, allocations: 470.4 kB / 464.4 MB, free: 5.535 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00314/0.3325, allocations: 1.433 MB / 465.9 MB, free: 4.051 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009528/0.3334, allocations: 343.3 kB / 466.2 MB, free: 3.703 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007756/0.3342, allocations: 373.7 kB / 466.6 MB, free: 3.336 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0135/0.3477, allocations: 6.961 MB / 473.5 MB, free: 12.17 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006492/0.3483, allocations: 247.2 kB / 473.8 MB, free: 11.92 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.795e-06/0.3484, allocations: 4 kB / 473.8 MB, free: 11.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002189/0.3505, allocations: 0.7665 MB / 474.6 MB, free: 11.14 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.404e-05/0.3506, allocations: 59.39 kB / 474.6 MB, free: 11.07 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001945/0.3525, allocations: 1.471 MB / 476.1 MB, free: 9.559 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.119e-05/0.3526, allocations: 33.7 kB / 476.1 MB, free: 9.52 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006715/0.3533, allocations: 0.7271 MB / 476.8 MB, free: 8.789 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.3534, allocations: 95.16 kB / 476.9 MB, free: 8.695 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001909/0.3536, allocations: 130 kB / 477.1 MB, free: 8.562 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.3537, allocations: 322 kB / 477.4 MB, free: 8.242 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004874/0.3542, allocations: 160.9 kB / 477.5 MB, free: 8.082 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006213/0.3548, allocations: 362.8 kB / 477.9 MB, free: 7.637 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00108/0.3559, allocations: 0.5377 MB / 478.4 MB, free: 7.008 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.852e-06/0.3559, allocations: 4 kB / 478.4 MB, free: 7.004 MB / 382.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001597/0.3575, allocations: 0.7556 MB / 479.2 MB, free: 6.238 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.422e-05/0.3575, allocations: 8 kB / 479.2 MB, free: 6.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.361e-05/0.3576, allocations: 47.98 kB / 479.2 MB, free: 6.184 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003553/0.3579, allocations: 129.6 kB / 479.4 MB, free: 6.055 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004207/0.3584, allocations: 107.8 kB / 479.5 MB, free: 5.949 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006944/0.3591, allocations: 0.6772 MB / 480.1 MB, free: 5.246 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006307/0.3597, allocations: 71.66 kB / 480.2 MB, free: 5.176 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-05/0.3598, allocations: 40 kB / 480.3 MB, free: 5.137 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.0004556/0.3602, allocations: 281.7 kB / 480.5 MB, free: 4.852 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002229/0.3604, allocations: 198.7 kB / 480.7 MB, free: 4.656 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001837/0.3623, allocations: 0.7432 MB / 481.5 MB, free: 3.898 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.3623, allocations: 0 / 481.5 MB, free: 3.898 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.3623, allocations: 4 kB / 481.5 MB, free: 3.895 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.3623, allocations: 0 / 481.5 MB, free: 3.895 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002284/0.3646, allocations: 1.193 MB / 482.7 MB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.762e-05/0.3646, allocations: 40 kB / 482.7 MB, free: 2.617 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000257/0.3649, allocations: 43.89 kB / 482.7 MB, free: 2.574 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002588/0.3651, allocations: 132.8 kB / 482.9 MB, free: 2.441 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.333e-05/0.3652, allocations: 27.92 kB / 482.9 MB, free: 2.414 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006341/0.3658, allocations: 0.6655 MB / 483.6 MB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.3658, allocations: 4.031 kB / 483.6 MB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001389/0.3672, allocations: 0.7172 MB / 484.3 MB, free: 0.9727 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004874/0.3677, allocations: 212.6 kB / 484.5 MB, free: 0.7656 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001505/0.3679, allocations: 8 kB / 484.5 MB, free: 0.7578 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004417/0.3683, allocations: 27.95 kB / 484.5 MB, free: 0.7305 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/0.3684, allocations: 35.95 kB / 484.6 MB, free: 0.6953 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-05/0.3685, allocations: 28 kB / 484.6 MB, free: 0.668 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001353/0.3698, allocations: 0.961 MB / 485.6 MB, free: 15.69 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3698, allocations: 0 / 485.6 MB, free: 15.69 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008738/0.3707, allocations: 331.6 kB / 485.9 MB, free: 15.36 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.0008331/0.3715, allocations: 0.5809 MB / 486.5 MB, free: 14.77 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001347/0.3729, allocations: 0.4928 MB / 487 MB, free: 14.27 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.3729, allocations: 0 / 487 MB, free: 14.27 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006746/0.3735, allocations: 275.5 kB / 487.2 MB, free: 13.99 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001312/0.3749, allocations: 310.3 kB / 487.5 MB, free: 13.68 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003599/0.3785, allocations: 2.273 MB / 489.8 MB, free: 11.36 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005739/0.379, allocations: 0.5704 MB / 490.4 MB, free: 10.75 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001823/0.3792, allocations: 99.38 kB / 490.5 MB, free: 10.65 MB / 398.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3792, allocations: 4 kB / 490.5 MB, free: 10.65 MB / 398.1 MB Notification: Performance of Templates: time 0.03661/0.4158, allocations: 26.67 MB / 0.505 GB, free: 32 kB / 414.1 MB " [Timeout remaining time 660] 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 8.988167569041252]