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.0009788/0.0009788, allocations: 85.95 kB / 22.21 MB, free: 2.289 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.001343/0.001343, allocations: 161.2 kB / 25.6 MB, free: 8.895 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 1.033/1.033, allocations: 158.6 MB / 187.5 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 2.114e-06/2.114e-06, allocations: 0 / 251.5 MB, free: 7.359 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.435e-05/2.646e-05, allocations: 2.312 kB / 251.5 MB, free: 7.355 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.006011/0.006037, allocations: 7.261 MB / 258.7 MB, free: 56 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01514/0.02117, allocations: 17.25 MB / 276 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001225/0.0224, allocations: 94.88 kB / 276.1 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001742/0.02414, allocations: 0.7436 MB / 276.8 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006007/0.03015, allocations: 1.846 MB / 278.7 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004029/0.03418, allocations: 1.3 MB / 280 MB, free: 10.72 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004657/0.03883, allocations: 3.356 MB / 283.3 MB, free: 7.355 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003352/0.03917, allocations: 120.9 kB / 283.4 MB, free: 7.215 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001534/0.0407, allocations: 1.447 MB / 284.9 MB, free: 5.766 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004275/0.04113, allocations: 418.6 kB / 285.3 MB, free: 5.355 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.132e-05/0.04121, allocations: 40 kB / 285.3 MB, free: 5.316 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002705/0.04392, allocations: 1.05 MB / 286.4 MB, free: 4.266 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001282/0.04405, allocations: 170.8 kB / 286.5 MB, free: 4.098 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004409/0.04449, allocations: 390.8 kB / 286.9 MB, free: 3.715 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002552/0.04704, allocations: 1.814 MB / 288.7 MB, free: 1.895 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.04704, allocations: 0 / 288.7 MB, free: 1.895 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.04704, allocations: 0 / 288.7 MB, free: 1.895 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.307e-05/0.04707, allocations: 0 / 288.7 MB, free: 1.895 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.001958/0.04903, allocations: 2.168 MB / 290.9 MB, free: 15.67 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.04907, allocations: 11.98 kB / 290.9 MB, free: 15.66 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002015/0.04927, allocations: 226.7 kB / 291.1 MB, free: 15.44 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001215/0.05048, allocations: 1.396 MB / 292.5 MB, free: 13.96 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.745e-05/0.0505, allocations: 20.66 kB / 292.6 MB, free: 13.95 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.162e-05/0.05055, allocations: 31.98 kB / 292.6 MB, free: 13.91 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000387/0.05094, allocations: 302.5 kB / 292.9 MB, free: 13.61 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.05095, allocations: 0 / 292.9 MB, free: 13.61 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.62e-05/0.05097, allocations: 8 kB / 292.9 MB, free: 13.6 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/0.05099, allocations: 12 kB / 292.9 MB, free: 13.59 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002444/0.05123, allocations: 216.5 kB / 293.1 MB, free: 13.38 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001485/0.05272, allocations: 1.235 MB / 294.3 MB, free: 12.11 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002444/0.05296, allocations: 160 kB / 294.5 MB, free: 11.94 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002252/0.05319, allocations: 228.6 kB / 294.7 MB, free: 11.71 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00824/0.06143, allocations: 7.813 MB / 302.5 MB, free: 3.695 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003022/0.06173, allocations: 172.8 kB / 302.7 MB, free: 3.512 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 2.044e-06/0.06173, allocations: 0 / 302.7 MB, free: 3.512 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0007679/0.0625, allocations: 0.5311 MB / 303.2 MB, free: 2.969 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.841e-05/0.06254, allocations: 71.33 kB / 303.3 MB, free: 2.887 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001104/0.06364, allocations: 1.573 MB / 304.9 MB, free: 1.27 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.424e-05/0.06366, allocations: 33.7 kB / 304.9 MB, free: 1.23 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004965/0.06416, allocations: 0.8415 MB / 305.8 MB, free: 392 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.164e-05/0.06423, allocations: 103.2 kB / 305.9 MB, free: 288 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001228/0.06436, allocations: 131.7 kB / 306 MB, free: 148 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.06452, allocations: 0.5043 MB / 306.5 MB, free: 15.63 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.741e-05/0.0646, allocations: 52.97 kB / 306.5 MB, free: 15.58 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002298/0.06483, allocations: 359.6 kB / 306.9 MB, free: 15.11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003557/0.06519, allocations: 455 kB / 307.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.06519, allocations: 4 kB / 307.3 MB, free: 14.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006036/0.0658, allocations: 0.5713 MB / 307.9 MB, free: 13.95 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.358e-05/0.06582, allocations: 15.92 kB / 307.9 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.134e-05/0.06586, allocations: 40 kB / 308 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000207/0.06607, allocations: 132.2 kB / 308.1 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000208/0.06628, allocations: 103.8 kB / 308.2 MB, free: 13.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004958/0.06677, allocations: 0.9132 MB / 309.1 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003551/0.06713, allocations: 63.61 kB / 309.2 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.005e-05/0.06718, allocations: 32 kB / 309.2 MB, free: 12.62 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.0002378/0.06742, allocations: 192.3 kB / 309.4 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001524/0.06757, allocations: 210.8 kB / 309.6 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007605/0.06833, allocations: 0.5705 MB / 310.2 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.972e-06/0.06833, allocations: 4 kB / 310.2 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-06/0.06834, allocations: 0 / 310.2 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.06834, allocations: 3.938 kB / 310.2 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001177/0.06952, allocations: 1.245 MB / 311.4 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.949e-05/0.06955, allocations: 36.06 kB / 311.5 MB, free: 10.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.818e-05/0.06965, allocations: 39.97 kB / 311.5 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000147/0.06979, allocations: 123.5 kB / 311.6 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.036e-05/0.06981, allocations: 20 kB / 311.6 MB, free: 10.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004505/0.07026, allocations: 0.9054 MB / 312.5 MB, free: 9.164 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.07027, allocations: 4 kB / 312.5 MB, free: 9.16 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004771/0.07074, allocations: 0.6201 MB / 313.2 MB, free: 8.504 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002344/0.07098, allocations: 220.6 kB / 313.4 MB, free: 8.289 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.723e-05/0.07106, allocations: 8 kB / 313.4 MB, free: 8.281 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001834/0.07124, allocations: 19.98 kB / 313.4 MB, free: 8.262 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.534e-05/0.07131, allocations: 47.88 kB / 313.5 MB, free: 8.215 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.35e-05/0.07134, allocations: 16 kB / 313.5 MB, free: 8.199 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005623/0.0719, allocations: 0.8477 MB / 314.3 MB, free: 7.332 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.0719, allocations: 0 / 314.3 MB, free: 7.332 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006373/0.07254, allocations: 339.5 kB / 314.6 MB, free: 7 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.0007383/0.07328, allocations: 0.6646 MB / 315.3 MB, free: 6.324 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004357/0.07371, allocations: 350.7 kB / 315.7 MB, free: 5.969 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.07371, allocations: 0 / 315.7 MB, free: 5.969 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002119/0.07393, allocations: 220 kB / 315.9 MB, free: 5.738 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006182/0.07454, allocations: 274.6 kB / 316.1 MB, free: 5.469 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002072/0.07662, allocations: 2.121 MB / 318.3 MB, free: 3.289 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001451/0.07676, allocations: 219 kB / 318.5 MB, free: 3.051 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003618/0.07712, allocations: 199.9 kB / 318.7 MB, free: 2.852 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003588/0.07748, allocations: 362 kB / 319 MB, free: 2.496 MB / 298.7 MB Notification: Performance of SimCode: time 1.282e-06/0.07748, allocations: 7.938 kB / 319 MB, free: 2.488 MB / 298.7 MB Notification: Performance of Templates: time 0.02657/0.1041, allocations: 22.8 MB / 341.8 MB, free: 11.68 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.2954564192332327]