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.0009264/0.0009264, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001359/0.002285, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 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.0007577/0.0007577, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001015/0.001773, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 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.9088/0.9088, allocations: 158.6 MB / 171.2 MB, free: 2.508 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.158/1.067, allocations: 49.49 MB / 220.7 MB, free: 1.367 MB / 218.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.253e-06/1.253e-06, allocations: 0 / 222 MB, free: 88 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.926e-05/2.051e-05, allocations: 13.41 kB / 222 MB, free: 76 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.01294/0.01296, allocations: 7.32 MB / 229.3 MB, free: 8.711 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.03716/0.05012, allocations: 17.64 MB / 246.9 MB, free: 7 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001238/0.05136, allocations: 98.88 kB / 247 MB, free: 6.902 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002092/0.05345, allocations: 0.7643 MB / 247.8 MB, free: 6.133 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004603/0.05805, allocations: 1.804 MB / 249.6 MB, free: 4.316 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003385/0.06144, allocations: 1.263 MB / 250.9 MB, free: 3.047 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003998/0.06544, allocations: 3.262 MB / 254.1 MB, free: 15.78 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003016/0.06574, allocations: 144.9 kB / 254.3 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001916/0.06765, allocations: 1.63 MB / 255.9 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005454/0.0682, allocations: 422.6 kB / 256.3 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.982e-05/0.06829, allocations: 40 kB / 256.4 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002685/0.07097, allocations: 1.109 MB / 257.5 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001373/0.07111, allocations: 134.9 kB / 257.6 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004011/0.07151, allocations: 342.9 kB / 257.9 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002178/0.07369, allocations: 1.685 MB / 259.6 MB, free: 10.2 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.149e-05/0.0737, allocations: 0 / 259.6 MB, free: 10.2 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.0737, allocations: 0 / 259.6 MB, free: 10.2 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.135e-05/0.07372, allocations: 0 / 259.6 MB, free: 10.2 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.00222/0.07594, allocations: 2.345 MB / 262 MB, free: 7.797 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.981e-05/0.07597, allocations: 15.97 kB / 262 MB, free: 7.781 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001589/0.07613, allocations: 143.8 kB / 262.1 MB, free: 7.641 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001291/0.07742, allocations: 1.125 MB / 263.2 MB, free: 6.422 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.866e-05/0.07744, allocations: 16.66 kB / 263.3 MB, free: 6.406 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.892e-05/0.0775, allocations: 31.95 kB / 263.3 MB, free: 6.375 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000402/0.0779, allocations: 285.4 kB / 263.6 MB, free: 6.09 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.07791, allocations: 0 / 263.6 MB, free: 6.09 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.137e-05/0.07795, allocations: 12 kB / 263.6 MB, free: 6.078 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.194e-05/0.07796, allocations: 12 kB / 263.6 MB, free: 6.066 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002372/0.07819, allocations: 112.5 kB / 263.7 MB, free: 5.953 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00125/0.07944, allocations: 0.81 MB / 264.5 MB, free: 5.125 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002274/0.07967, allocations: 183.4 kB / 264.7 MB, free: 4.938 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002361/0.07991, allocations: 205.7 kB / 264.9 MB, free: 4.734 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01488/0.09479, allocations: 11.57 MB / 276.5 MB, free: 8.719 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000237/0.09503, allocations: 151.2 kB / 276.6 MB, free: 8.559 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 1.763e-06/0.09503, allocations: 0 / 276.6 MB, free: 8.559 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006379/0.09567, allocations: 346.1 kB / 277 MB, free: 8.211 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.591e-05/0.0957, allocations: 67.28 kB / 277 MB, free: 8.133 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009597/0.09666, allocations: 1.342 MB / 278.4 MB, free: 6.754 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.763e-05/0.09669, allocations: 29.7 kB / 278.4 MB, free: 6.719 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000236/0.09693, allocations: 412.3 kB / 278.8 MB, free: 6.309 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.952e-05/0.097, allocations: 103.2 kB / 278.9 MB, free: 6.207 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001234/0.09712, allocations: 106 kB / 279 MB, free: 6.098 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.908e-05/0.0972, allocations: 325.9 kB / 279.3 MB, free: 5.773 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.889e-05/0.09728, allocations: 48.97 kB / 279.4 MB, free: 5.727 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000176/0.09745, allocations: 246.9 kB / 279.6 MB, free: 5.391 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003341/0.09779, allocations: 366 kB / 280 MB, free: 4.941 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.09779, allocations: 0 / 280 MB, free: 4.941 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005041/0.0983, allocations: 418.4 kB / 280.4 MB, free: 4.523 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.09832, allocations: 8 kB / 280.4 MB, free: 4.516 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.916e-05/0.09835, allocations: 12 kB / 280.4 MB, free: 4.504 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001814/0.09854, allocations: 77.5 kB / 280.5 MB, free: 4.426 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000266/0.0988, allocations: 111.8 kB / 280.6 MB, free: 4.316 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003456/0.09915, allocations: 0.5757 MB / 281.1 MB, free: 3.715 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003449/0.09949, allocations: 59.61 kB / 281.2 MB, free: 3.656 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.421e-05/0.09954, allocations: 20 kB / 281.2 MB, free: 3.637 MB / 282.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.0001814/0.09972, allocations: 157.5 kB / 281.4 MB, free: 3.473 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001225/0.09984, allocations: 127.8 kB / 281.5 MB, free: 3.348 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007507/0.1006, allocations: 457.1 kB / 282 MB, free: 2.895 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.1006, allocations: 4 kB / 282 MB, free: 2.891 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.402e-06/0.1006, allocations: 0 / 282 MB, free: 2.891 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.1006, allocations: 0 / 282 MB, free: 2.891 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000933/0.1015, allocations: 0.8933 MB / 282.8 MB, free: 1.953 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.903e-05/0.1016, allocations: 8 kB / 282.9 MB, free: 1.945 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001234/0.1017, allocations: 35.97 kB / 282.9 MB, free: 1.91 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003291/0.102, allocations: 201.2 kB / 283.1 MB, free: 1.711 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000135/0.1022, allocations: 60.83 kB / 283.1 MB, free: 1.648 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.307e-05/0.1022, allocations: 11.98 kB / 283.2 MB, free: 1.637 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002983/0.1025, allocations: 0.5601 MB / 283.7 MB, free: 1.051 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1025, allocations: 0 / 283.7 MB, free: 1.051 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000389/0.1029, allocations: 391.6 kB / 284.1 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001112/0.103, allocations: 11.98 kB / 284.1 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002712/0.1032, allocations: 20.11 kB / 284.1 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.316e-05/0.1033, allocations: 39.92 kB / 284.2 MB, free: 0.5703 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.657e-05/0.1034, allocations: 7.984 kB / 284.2 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.1107/0.214, allocations: 0.6788 MB / 284.9 MB, free: 40.87 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.214, allocations: 0 / 284.9 MB, free: 40.87 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007828/0.2148, allocations: 336.7 kB / 285.2 MB, free: 40.87 MB / 282.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.0007641/0.2156, allocations: 0.6612 MB / 285.8 MB, free: 40.8 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004776/0.216, allocations: 283.4 kB / 286.1 MB, free: 40.73 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.191e-05/0.2161, allocations: 24.73 kB / 286.1 MB, free: 40.73 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001991/0.2163, allocations: 168 kB / 286.3 MB, free: 40.66 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001205/0.2175, allocations: 2.906 MB / 289.2 MB, free: 37.89 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005027/0.2225, allocations: 2.03 MB / 291.2 MB, free: 36.88 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001737/0.2227, allocations: 214.2 kB / 291.5 MB, free: 36.79 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005073/0.2232, allocations: 205.2 kB / 291.7 MB, free: 36.75 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004704/0.2237, allocations: 318 kB / 292 MB, free: 36.71 MB / 282.7 MB Notification: Performance of SimCode: time 1.753e-06/0.2237, allocations: 0 / 292 MB, free: 36.71 MB / 282.7 MB Notification: Performance of Templates: time 0.02856/0.2522, allocations: 23.03 MB / 315 MB, free: 23.95 MB / 282.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.15573694370687]