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.001465/0.001465, allocations: 96.3 kB / 21.73 MB, free: 2.703 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.001557/0.001557, allocations: 166.5 kB / 25.02 MB, free: 8.945 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.39/1.39, allocations: 158.6 MB / 186.8 MB, free: 2.934 MB / 170.7 MB " [Timeout remaining time 178] 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.533e-06/1.533e-06, allocations: 0 / 250.3 MB, free: 7.852 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.182e-05/3.335e-05, allocations: 2.312 kB / 250.3 MB, free: 7.848 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009143/0.009177, allocations: 6.661 MB / 257 MB, free: 1.152 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.02239/0.03157, allocations: 15.88 MB / 272.9 MB, free: 1.207 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00127/0.03284, allocations: 98.88 kB / 273 MB, free: 1.109 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002489/0.03532, allocations: 0.7475 MB / 273.7 MB, free: 368 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007227/0.04255, allocations: 1.842 MB / 275.6 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00511/0.04766, allocations: 1.3 MB / 276.9 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00632/0.05398, allocations: 3.29 MB / 280.2 MB, free: 9.891 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004491/0.05443, allocations: 128.9 kB / 280.3 MB, free: 9.742 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001179/0.05561, allocations: 0.7247 MB / 281 MB, free: 9.016 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006362/0.05625, allocations: 410.6 kB / 281.4 MB, free: 8.613 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001044/0.05635, allocations: 40 kB / 281.5 MB, free: 8.574 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003252/0.0596, allocations: 1.05 MB / 282.5 MB, free: 7.523 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001891/0.05979, allocations: 178.8 kB / 282.7 MB, free: 7.348 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005577/0.06035, allocations: 382.8 kB / 283.1 MB, free: 6.973 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003351/0.0637, allocations: 2.282 MB / 285.3 MB, free: 4.684 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.0637, allocations: 0 / 285.3 MB, free: 4.684 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.06371, allocations: 0 / 285.3 MB, free: 4.684 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.645e-05/0.06372, allocations: 0 / 285.3 MB, free: 4.684 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.003264/0.06699, allocations: 1.987 MB / 287.3 MB, free: 2.652 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.06703, allocations: 15.98 kB / 287.3 MB, free: 2.637 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003373/0.06736, allocations: 226.7 kB / 287.6 MB, free: 2.414 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002208/0.06957, allocations: 1.44 MB / 289 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.614e-05/0.0696, allocations: 16.66 kB / 289 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.419e-05/0.06969, allocations: 28 kB / 289 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001041/0.07073, allocations: 437.8 kB / 289.5 MB, free: 432 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.07075, allocations: 0 / 289.5 MB, free: 432 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.09e-05/0.0708, allocations: 12 kB / 289.5 MB, free: 420 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.453e-05/0.07081, allocations: 4 kB / 289.5 MB, free: 416 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001297/0.07211, allocations: 486.3 kB / 290 MB, free: 15.93 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002911/0.07502, allocations: 1.429 MB / 291.4 MB, free: 14.46 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009572/0.07598, allocations: 343.4 kB / 291.7 MB, free: 14.11 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007951/0.07677, allocations: 373.8 kB / 292.1 MB, free: 13.75 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01448/0.09125, allocations: 7.76 MB / 299.9 MB, free: 5.766 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006746/0.09193, allocations: 259.1 kB / 300.1 MB, free: 5.5 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 1.824e-06/0.09193, allocations: 0 / 300.1 MB, free: 5.5 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.002303/0.09423, allocations: 0.7781 MB / 300.9 MB, free: 4.711 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.573e-05/0.09429, allocations: 63.41 kB / 300.9 MB, free: 4.637 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002022/0.09631, allocations: 1.476 MB / 302.4 MB, free: 3.125 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.441e-05/0.09635, allocations: 29.7 kB / 302.5 MB, free: 3.09 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007533/0.09711, allocations: 0.7233 MB / 303.2 MB, free: 2.363 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.09722, allocations: 103.2 kB / 303.3 MB, free: 2.262 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002085/0.09743, allocations: 126 kB / 303.4 MB, free: 2.133 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001827/0.09761, allocations: 326 kB / 303.7 MB, free: 1.809 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005777/0.09819, allocations: 160.8 kB / 303.9 MB, free: 1.652 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000645/0.09883, allocations: 362.9 kB / 304.2 MB, free: 1.207 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001131/0.09996, allocations: 0.5333 MB / 304.8 MB, free: 0.582 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.09997, allocations: 0 / 304.8 MB, free: 0.582 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001684/0.1017, allocations: 0.7832 MB / 305.5 MB, free: 15.79 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/0.1017, allocations: 11.94 kB / 305.6 MB, free: 15.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.957e-05/0.1017, allocations: 44 kB / 305.6 MB, free: 15.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003415/0.1021, allocations: 133.3 kB / 305.7 MB, free: 15.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000425/0.1025, allocations: 111.8 kB / 305.8 MB, free: 15.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007852/0.1033, allocations: 0.6851 MB / 306.5 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005735/0.1039, allocations: 67.64 kB / 306.6 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.082e-05/0.1039, allocations: 35.94 kB / 306.6 MB, free: 14.68 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.0004328/0.1044, allocations: 277.7 kB / 306.9 MB, free: 14.4 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002672/0.1046, allocations: 210.7 kB / 307.1 MB, free: 14.19 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001986/0.1066, allocations: 0.7317 MB / 307.8 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.1066, allocations: 4 kB / 307.8 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.1066, allocations: 0 / 307.8 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.1066, allocations: 3.938 kB / 307.8 MB, free: 13.44 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002355/0.109, allocations: 1.2 MB / 309 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.268e-05/0.1091, allocations: 32 kB / 309.1 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002624/0.1093, allocations: 47.95 kB / 309.1 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002727/0.1096, allocations: 132.8 kB / 309.2 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.124e-05/0.1096, allocations: 16 kB / 309.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007286/0.1104, allocations: 0.6656 MB / 309.9 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.1104, allocations: 4.031 kB / 309.9 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001495/0.1119, allocations: 0.7291 MB / 310.7 MB, free: 10.51 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004987/0.1124, allocations: 228.5 kB / 310.9 MB, free: 10.29 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001511/0.1125, allocations: 8 kB / 310.9 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004644/0.113, allocations: 27.95 kB / 310.9 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.1131, allocations: 43.83 kB / 311 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.676e-05/0.1132, allocations: 28 kB / 311 MB, free: 10.18 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001344/0.1145, allocations: 0.9653 MB / 312 MB, free: 9.199 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1145, allocations: 0 / 312 MB, free: 9.199 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009481/0.1154, allocations: 335.6 kB / 312.3 MB, free: 8.871 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.00101/0.1165, allocations: 0.6088 MB / 312.9 MB, free: 8.254 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001408/0.1179, allocations: 0.4931 MB / 313.4 MB, free: 7.75 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.1179, allocations: 0 / 313.4 MB, free: 7.75 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007035/0.1186, allocations: 285.4 kB / 313.7 MB, free: 7.461 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/0.1196, allocations: 271 kB / 313.9 MB, free: 7.191 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003702/0.1233, allocations: 2.274 MB / 316.2 MB, free: 4.863 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006267/0.1239, allocations: 0.5667 MB / 316.8 MB, free: 4.258 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005467/0.1245, allocations: 199.9 kB / 317 MB, free: 4.059 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001836/0.1247, allocations: 92.5 kB / 317.1 MB, free: 3.965 MB / 298.7 MB Notification: Performance of SimCode: time 8.12e-07/0.1247, allocations: 0 / 317.1 MB, free: 3.965 MB / 298.7 MB Notification: Performance of Templates: time 0.03623/0.1609, allocations: 19.55 MB / 336.6 MB, free: 436 kB / 314.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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.116670914925635]