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.0009255/0.0009255, allocations: 80.8 kB / 22.29 MB, free: 2.203 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.0009994/0.0009994, allocations: 170.6 kB / 25.7 MB, free: 8.445 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.9019/0.9019, allocations: 158.6 MB / 187.6 MB, free: 2.77 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.162e-06/1.162e-06, allocations: 0 / 251.6 MB, free: 7.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.737e-05/1.853e-05, allocations: 10.25 kB / 251.6 MB, free: 7.227 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.00527/0.005288, allocations: 7.308 MB / 258.9 MB, free: 15.88 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01537/0.02065, allocations: 17.56 MB / 276.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007873/0.02144, allocations: 98.88 kB / 276.5 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001543/0.02298, allocations: 0.7642 MB / 277.3 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003438/0.02642, allocations: 1.812 MB / 279.1 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002538/0.02896, allocations: 1.251 MB / 280.4 MB, free: 10.29 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003361/0.03232, allocations: 3.328 MB / 283.7 MB, free: 6.957 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002948/0.03262, allocations: 152.8 kB / 283.8 MB, free: 6.773 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001309/0.03392, allocations: 1.432 MB / 285.3 MB, free: 5.34 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004533/0.03438, allocations: 414.7 kB / 285.7 MB, free: 4.934 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.374e-05/0.03444, allocations: 40 kB / 285.7 MB, free: 4.895 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002215/0.03666, allocations: 1.105 MB / 286.8 MB, free: 3.789 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00011/0.03677, allocations: 178.8 kB / 287 MB, free: 3.613 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002903/0.03706, allocations: 382.8 kB / 287.4 MB, free: 3.238 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001733/0.03879, allocations: 1.81 MB / 289.2 MB, free: 1.422 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.03879, allocations: 4 kB / 289.2 MB, free: 1.418 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.03879, allocations: 0 / 289.2 MB, free: 1.418 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.661e-05/0.03881, allocations: 4 kB / 289.2 MB, free: 1.414 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.001663/0.04047, allocations: 1.946 MB / 291.1 MB, free: 15.43 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.95e-05/0.0405, allocations: 11.98 kB / 291.1 MB, free: 15.41 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001242/0.04063, allocations: 139.8 kB / 291.3 MB, free: 15.28 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00101/0.04164, allocations: 1.136 MB / 292.4 MB, free: 14.05 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.895e-05/0.04166, allocations: 20.64 kB / 292.4 MB, free: 14.03 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.508e-05/0.0417, allocations: 28 kB / 292.5 MB, free: 14 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003588/0.04206, allocations: 281.4 kB / 292.7 MB, free: 13.72 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.04207, allocations: 0 / 292.7 MB, free: 13.72 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.612e-05/0.0421, allocations: 12 kB / 292.8 MB, free: 13.71 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.04211, allocations: 7.984 kB / 292.8 MB, free: 13.7 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001866/0.0423, allocations: 120.5 kB / 292.9 MB, free: 13.58 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00107/0.04337, allocations: 0.7983 MB / 293.7 MB, free: 12.76 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001907/0.04356, allocations: 183.5 kB / 293.9 MB, free: 12.57 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001844/0.04374, allocations: 209.6 kB / 294.1 MB, free: 12.37 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01115/0.0549, allocations: 11.61 MB / 305.7 MB, free: 324 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001869/0.05508, allocations: 151.1 kB / 305.8 MB, free: 160 kB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 1.362e-06/0.05508, allocations: 0 / 305.8 MB, free: 160 kB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005406/0.05562, allocations: 350.1 kB / 306.2 MB, free: 15.8 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.41e-05/0.05566, allocations: 67.33 kB / 306.2 MB, free: 15.73 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007166/0.05637, allocations: 1.326 MB / 307.6 MB, free: 14.36 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.478e-05/0.0564, allocations: 37.7 kB / 307.6 MB, free: 14.32 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00019/0.05659, allocations: 416.3 kB / 308 MB, free: 13.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.297e-05/0.05664, allocations: 95.19 kB / 308.1 MB, free: 13.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.704e-05/0.05674, allocations: 106 kB / 308.2 MB, free: 13.71 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.876e-05/0.05681, allocations: 325.9 kB / 308.5 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.18e-05/0.05687, allocations: 44.97 kB / 308.6 MB, free: 13.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.05702, allocations: 250.9 kB / 308.8 MB, free: 13 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002489/0.05727, allocations: 350.1 kB / 309.1 MB, free: 12.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.05727, allocations: 4 kB / 309.1 MB, free: 12.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0003984/0.05767, allocations: 402.3 kB / 309.5 MB, free: 12.16 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.05768, allocations: 8.906 kB / 309.5 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.115e-05/0.05771, allocations: 12 kB / 309.6 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001658/0.05788, allocations: 84.69 kB / 309.6 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002065/0.05809, allocations: 111.8 kB / 309.8 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004389/0.05853, allocations: 0.5756 MB / 310.3 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002254/0.05875, allocations: 59.66 kB / 310.4 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.524e-05/0.05879, allocations: 20 kB / 310.4 MB, free: 11.27 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.0001547/0.05894, allocations: 153.6 kB / 310.6 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.951e-05/0.05903, allocations: 127.8 kB / 310.7 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005936/0.05962, allocations: 461.4 kB / 311.1 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.05963, allocations: 0 / 311.1 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.444e-06/0.05963, allocations: 4.062 kB / 311.1 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.05963, allocations: 8 kB / 311.1 MB, free: 10.51 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000727/0.06036, allocations: 0.8816 MB / 312 MB, free: 9.586 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.166e-05/0.06038, allocations: 11.94 kB / 312 MB, free: 9.574 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001003/0.06048, allocations: 35.97 kB / 312.1 MB, free: 9.539 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001121/0.06059, allocations: 64.88 kB / 312.1 MB, free: 9.473 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.829e-05/0.06061, allocations: 11.94 kB / 312.1 MB, free: 9.461 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002514/0.06086, allocations: 0.5562 MB / 312.7 MB, free: 8.879 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.06087, allocations: 0 / 312.7 MB, free: 8.879 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000301/0.06117, allocations: 387.8 kB / 313.1 MB, free: 8.473 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001808/0.06135, allocations: 201.3 kB / 313.3 MB, free: 8.273 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.283e-05/0.06143, allocations: 8 kB / 313.3 MB, free: 8.266 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001834/0.06161, allocations: 24 kB / 313.3 MB, free: 8.242 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.014e-05/0.06168, allocations: 31.89 kB / 313.3 MB, free: 8.211 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.44e-05/0.06171, allocations: 11.98 kB / 313.4 MB, free: 8.199 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004128/0.06212, allocations: 0.6794 MB / 314 MB, free: 7.496 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.06212, allocations: 0 / 314 MB, free: 7.496 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000465/0.06259, allocations: 335.6 kB / 314.4 MB, free: 7.168 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.0006386/0.06322, allocations: 0.6656 MB / 315 MB, free: 6.492 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003646/0.06359, allocations: 279.3 kB / 315.3 MB, free: 6.207 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-05/0.06361, allocations: 20 kB / 315.3 MB, free: 6.188 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001617/0.06377, allocations: 141.3 kB / 315.5 MB, free: 6.035 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005359/0.0643, allocations: 271.8 kB / 315.7 MB, free: 5.766 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001973/0.06628, allocations: 2.028 MB / 317.7 MB, free: 3.684 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001157/0.06639, allocations: 211.2 kB / 318 MB, free: 3.453 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003158/0.06671, allocations: 203.9 kB / 318.2 MB, free: 3.25 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003383/0.06705, allocations: 313.2 kB / 318.5 MB, free: 2.945 MB / 298.7 MB Notification: Performance of SimCode: time 9.62e-07/0.06705, allocations: 0 / 318.5 MB, free: 2.945 MB / 298.7 MB Notification: Performance of Templates: time 0.02545/0.0925, allocations: 22.56 MB / 341 MB, free: 12.39 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 -s gbode -gbm=radauIIA3 -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.0089592267759144]