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.001539/0.001539, allocations: 117 kB / 18.41 MB, free: 4.664 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.001629/0.001629, allocations: 186.9 kB / 21.34 MB, free: 1.738 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.533/1.533, allocations: 222.9 MB / 247.1 MB, free: 4.211 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.001506/0.001506, allocations: 47.92 kB / 358.7 MB, free: 8.371 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08726/0.08878, allocations: 49.44 MB / 408.1 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008245/0.09707, allocations: 8.017 MB / 416.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1965/0.2936, allocations: 19.43 MB / 435.5 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007577/0.2944, allocations: 64.66 kB / 435.6 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001947/0.2964, allocations: 0.8513 MB / 436.5 MB, free: 4.582 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004554/0.301, allocations: 1.792 MB / 438.2 MB, free: 4.473 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003676/0.3046, allocations: 1.349 MB / 439.6 MB, free: 4.094 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005148/0.3098, allocations: 3.25 MB / 442.8 MB, free: 3.578 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004016/0.3102, allocations: 227.6 kB / 443.1 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008482/0.3111, allocations: 0.5555 MB / 443.6 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005588/0.3117, allocations: 0.5583 MB / 444.2 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001013/0.3118, allocations: 41.25 kB / 444.2 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003884/0.3157, allocations: 1.444 MB / 445.7 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001844/0.3159, allocations: 171.3 kB / 445.8 MB, free: 2.996 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006102/0.3165, allocations: 0.6738 MB / 446.5 MB, free: 2.727 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003184/0.3197, allocations: 2.22 MB / 448.7 MB, free: 2.312 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3197, allocations: 2.016 kB / 448.7 MB, free: 2.312 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3197, allocations: 5.031 kB / 448.7 MB, free: 2.309 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.34e-05/0.3197, allocations: 0 / 448.7 MB, free: 2.309 MB / 350.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.002704/0.3224, allocations: 2.068 MB / 450.8 MB, free: 1.031 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.3225, allocations: 13.12 kB / 450.8 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002048/0.3227, allocations: 202.4 kB / 451 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001597/0.3243, allocations: 1.371 MB / 452.4 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.554e-05/0.3243, allocations: 22.31 kB / 452.4 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.236e-05/0.3244, allocations: 29.97 kB / 452.4 MB, free: 392 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008708/0.3253, allocations: 429.5 kB / 452.9 MB, free: 352 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.3253, allocations: 5.5 kB / 452.9 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.018e-05/0.3254, allocations: 10.42 kB / 452.9 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.34e-05/0.3254, allocations: 13.81 kB / 452.9 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000979/0.3264, allocations: 470.2 kB / 453.3 MB, free: 344 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002371/0.3288, allocations: 1.618 MB / 455 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008334/0.3296, allocations: 374.6 kB / 455.3 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006399/0.3303, allocations: 412.1 kB / 455.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01466/0.3449, allocations: 15.21 MB / 470.9 MB, free: 3.375 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006071/0.3456, allocations: 255.9 kB / 471.2 MB, free: 3.215 MB / 366.1 MB Notification: Performance of pre-optimization done (n=29): time 2.215e-06/0.3456, allocations: 1.281 kB / 471.2 MB, free: 3.215 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.001996/0.3476, allocations: 0.8514 MB / 472 MB, free: 2.746 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.818e-05/0.3476, allocations: 62.33 kB / 472.1 MB, free: 2.676 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001577/0.3492, allocations: 1.45 MB / 473.6 MB, free: 1.867 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.703e-05/0.3493, allocations: 32.27 kB / 473.6 MB, free: 1.832 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006041/0.3499, allocations: 0.7298 MB / 474.3 MB, free: 1.18 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.854e-05/0.35, allocations: 94.16 kB / 474.4 MB, free: 1.102 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001711/0.3502, allocations: 131.8 kB / 474.5 MB, free: 1.027 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.3503, allocations: 320.5 kB / 474.9 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004364/0.3507, allocations: 165.9 kB / 475 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005687/0.3513, allocations: 359.5 kB / 475.4 MB, free: 140 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001048/0.3524, allocations: 0.5293 MB / 475.9 MB, free: 15.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.3524, allocations: 0 / 475.9 MB, free: 15.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001476/0.3539, allocations: 0.7623 MB / 476.7 MB, free: 14.75 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.3539, allocations: 11.98 kB / 476.7 MB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.909e-05/0.354, allocations: 39.94 kB / 476.7 MB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003114/0.3543, allocations: 137.6 kB / 476.8 MB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000397/0.3547, allocations: 107.8 kB / 476.9 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006331/0.3553, allocations: 0.6829 MB / 477.6 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006629/0.356, allocations: 71.7 kB / 477.7 MB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.758e-05/0.3561, allocations: 35.98 kB / 477.7 MB, free: 13.64 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.0003931/0.3565, allocations: 274.3 kB / 478 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002041/0.3567, allocations: 194.8 kB / 478.2 MB, free: 13.17 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00175/0.3585, allocations: 0.7557 MB / 478.9 MB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.3585, allocations: 4 kB / 479 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.3585, allocations: 0 / 479 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.3585, allocations: 3.984 kB / 479 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002181/0.3607, allocations: 1.31 MB / 480.3 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.571e-05/0.3607, allocations: 32 kB / 480.3 MB, free: 11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002372/0.361, allocations: 47.58 kB / 480.3 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002451/0.3612, allocations: 128.8 kB / 480.5 MB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.691e-05/0.3613, allocations: 16 kB / 480.5 MB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000577/0.3619, allocations: 0.68 MB / 481.2 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3619, allocations: 3.938 kB / 481.2 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001312/0.3632, allocations: 0.7212 MB / 481.9 MB, free: 9.359 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000401/0.3636, allocations: 295.7 kB / 482.2 MB, free: 9.051 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001448/0.3638, allocations: 8 kB / 482.2 MB, free: 9.043 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004037/0.3642, allocations: 27.97 kB / 482.2 MB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.3643, allocations: 39.95 kB / 482.3 MB, free: 8.977 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.398e-05/0.3643, allocations: 20 kB / 482.3 MB, free: 8.957 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001153/0.3655, allocations: 0.9649 MB / 483.2 MB, free: 7.973 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3655, allocations: 0 / 483.2 MB, free: 7.973 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008682/0.3664, allocations: 327.6 kB / 483.6 MB, free: 7.652 MB / 382.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.000814/0.3672, allocations: 0.5747 MB / 484.1 MB, free: 7.176 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001251/0.3685, allocations: 0.5153 MB / 484.6 MB, free: 6.648 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.3685, allocations: 4.062 kB / 484.7 MB, free: 6.645 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00065/0.3691, allocations: 295.1 kB / 484.9 MB, free: 6.344 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001292/0.3704, allocations: 310 kB / 485.2 MB, free: 6.039 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003301/0.3737, allocations: 2.285 MB / 487.5 MB, free: 3.711 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007012/0.3745, allocations: 1.145 MB / 488.7 MB, free: 2.535 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000163/0.3746, allocations: 95.44 kB / 488.8 MB, free: 2.441 MB / 382.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3746, allocations: 0 / 488.8 MB, free: 2.441 MB / 382.1 MB Notification: Performance of Templates: time 0.1046/0.4793, allocations: 25.9 MB / 0.5026 GB, free: 8.598 MB / 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_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: 10.357644367963076]