Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001019/0.001019, allocations: 84.98 kB / 23 MB, free: 1.504 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001276/0.001276, allocations: 172.8 kB / 26.39 MB, free: 8.145 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9611/0.9611, allocations: 158.6 MB / 188.3 MB, free: 2.816 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.442e-06/1.442e-06, allocations: 3.938 kB / 252.2 MB, free: 7.262 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.497e-05/2.641e-05, allocations: 6.25 kB / 252.2 MB, free: 7.254 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005855/0.005882, allocations: 7.257 MB / 259.5 MB, free: 15.96 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01484/0.02072, allocations: 17.25 MB / 276.7 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000981/0.02171, allocations: 98.88 kB / 276.8 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001653/0.02336, allocations: 0.7397 MB / 277.6 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004729/0.02809, allocations: 1.854 MB / 279.4 MB, free: 11.94 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003518/0.03161, allocations: 1.304 MB / 280.7 MB, free: 10.62 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004117/0.03572, allocations: 3.345 MB / 284.1 MB, free: 7.27 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003411/0.03606, allocations: 124.9 kB / 284.2 MB, free: 7.125 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001483/0.03755, allocations: 1.443 MB / 285.7 MB, free: 5.68 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004471/0.03799, allocations: 422.6 kB / 286.1 MB, free: 5.266 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.862e-05/0.03806, allocations: 40 kB / 286.1 MB, free: 5.227 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002918/0.04098, allocations: 1.054 MB / 287.2 MB, free: 4.172 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001351/0.04112, allocations: 174.8 kB / 287.3 MB, free: 4 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003566/0.04147, allocations: 382.8 kB / 287.7 MB, free: 3.625 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00214/0.04361, allocations: 1.814 MB / 289.5 MB, free: 1.805 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.04362, allocations: 4 kB / 289.5 MB, free: 1.801 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.04362, allocations: 4 kB / 289.5 MB, free: 1.797 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.735e-05/0.04364, allocations: 0 / 289.5 MB, free: 1.797 MB / 266.7 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.001954/0.04559, allocations: 2.156 MB / 291.7 MB, free: 15.59 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.04563, allocations: 11.98 kB / 291.7 MB, free: 15.57 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002008/0.04583, allocations: 226.7 kB / 291.9 MB, free: 15.35 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001198/0.04703, allocations: 1.396 MB / 293.3 MB, free: 13.88 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.04705, allocations: 20.66 kB / 293.3 MB, free: 13.86 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.276e-05/0.0471, allocations: 35.92 kB / 293.4 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003932/0.04749, allocations: 290.6 kB / 293.6 MB, free: 13.53 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.0475, allocations: 7.984 kB / 293.7 MB, free: 13.52 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.72e-05/0.04753, allocations: 8 kB / 293.7 MB, free: 13.52 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.04754, allocations: 8 kB / 293.7 MB, free: 13.51 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002395/0.04778, allocations: 224.4 kB / 293.9 MB, free: 13.29 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001418/0.0492, allocations: 1.231 MB / 295.1 MB, free: 12.02 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002385/0.04944, allocations: 164 kB / 295.3 MB, free: 11.85 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002195/0.04966, allocations: 228.6 kB / 295.5 MB, free: 11.62 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008018/0.05767, allocations: 7.784 MB / 303.3 MB, free: 3.629 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002665/0.05794, allocations: 180.8 kB / 303.5 MB, free: 3.438 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 2.325e-06/0.05794, allocations: 0 / 303.5 MB, free: 3.438 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.00087/0.05881, allocations: 0.5272 MB / 304 MB, free: 2.898 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.29e-05/0.05886, allocations: 59.34 kB / 304.1 MB, free: 2.828 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001087/0.05994, allocations: 1.573 MB / 305.6 MB, free: 1.211 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.913e-05/0.05997, allocations: 37.69 kB / 305.7 MB, free: 1.168 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000493/0.06046, allocations: 0.8415 MB / 306.5 MB, free: 328 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.455e-05/0.06053, allocations: 103.2 kB / 306.6 MB, free: 224 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001222/0.06065, allocations: 139.6 kB / 306.7 MB, free: 76 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.06078, allocations: 0.4965 MB / 307.2 MB, free: 15.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.347e-05/0.06087, allocations: 60.95 kB / 307.3 MB, free: 15.51 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002205/0.06109, allocations: 351.7 kB / 307.6 MB, free: 15.04 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003309/0.06142, allocations: 451.1 kB / 308.1 MB, free: 14.48 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.06142, allocations: 3.938 kB / 308.1 MB, free: 14.47 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005937/0.06202, allocations: 0.5795 MB / 308.7 MB, free: 13.88 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.06204, allocations: 12.06 kB / 308.7 MB, free: 13.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.5e-05/0.06208, allocations: 44 kB / 308.7 MB, free: 13.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002059/0.06229, allocations: 127.6 kB / 308.8 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002076/0.0625, allocations: 103.9 kB / 308.9 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004754/0.06297, allocations: 0.9131 MB / 309.9 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002909/0.06326, allocations: 63.64 kB / 309.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.912e-05/0.06331, allocations: 36 kB / 310 MB, free: 12.55 MB / 298.7 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.0002016/0.06351, allocations: 196.3 kB / 310.1 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001353/0.06365, allocations: 202.8 kB / 310.3 MB, free: 12.15 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000787/0.06444, allocations: 0.5704 MB / 310.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.06444, allocations: 8 kB / 310.9 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.06445, allocations: 3.984 kB / 310.9 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.06445, allocations: 3.938 kB / 310.9 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001155/0.06561, allocations: 1.245 MB / 312.2 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.495e-05/0.06564, allocations: 40.06 kB / 312.2 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001081/0.06575, allocations: 39.91 kB / 312.3 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001534/0.0659, allocations: 123.6 kB / 312.4 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.381e-05/0.06593, allocations: 16 kB / 312.4 MB, free: 10.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004648/0.06639, allocations: 0.9053 MB / 313.3 MB, free: 9.094 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.06639, allocations: 0 / 313.3 MB, free: 9.094 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005153/0.06691, allocations: 0.6199 MB / 313.9 MB, free: 8.438 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002354/0.06714, allocations: 220.6 kB / 314.1 MB, free: 8.223 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.131e-05/0.06724, allocations: 7.984 kB / 314.1 MB, free: 8.215 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001966/0.06743, allocations: 20.02 kB / 314.2 MB, free: 8.195 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.775e-05/0.06751, allocations: 43.89 kB / 314.2 MB, free: 8.152 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.706e-05/0.06754, allocations: 23.98 kB / 314.2 MB, free: 8.129 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005656/0.0681, allocations: 0.8477 MB / 315.1 MB, free: 7.262 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0681, allocations: 0 / 315.1 MB, free: 7.262 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006586/0.06876, allocations: 335.5 kB / 315.4 MB, free: 6.934 MB / 298.7 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.0007206/0.06948, allocations: 0.6685 MB / 316.1 MB, free: 6.254 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004288/0.06991, allocations: 350.2 kB / 316.4 MB, free: 5.898 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.06991, allocations: 0 / 316.4 MB, free: 5.898 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002103/0.07012, allocations: 212 kB / 316.6 MB, free: 5.676 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006239/0.07075, allocations: 272.1 kB / 316.9 MB, free: 5.406 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002055/0.0728, allocations: 2.129 MB / 319 MB, free: 3.219 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001337/0.07294, allocations: 215.1 kB / 319.2 MB, free: 2.984 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003368/0.07327, allocations: 203.9 kB / 319.4 MB, free: 2.781 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003541/0.07363, allocations: 362 kB / 319.8 MB, free: 2.426 MB / 298.7 MB Notification: Performance of SimCode: time 7.01e-07/0.07363, allocations: 0 / 319.8 MB, free: 2.426 MB / 298.7 MB Notification: Performance of Templates: time 0.02699/0.1006, allocations: 22.93 MB / 342.7 MB, free: 11.51 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4297883911058307]