Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001522/0.001522, allocations: 92.62 kB / 20.96 MB, free: 3.477 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001455/0.001455, allocations: 153.4 kB / 24.26 MB, free: 184 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.484/1.484, allocations: 173.4 MB / 200.8 MB, free: 9.297 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.605e-06/2.605e-06, allocations: 0 / 267.3 MB, free: 6.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.592e-05/4.852e-05, allocations: 2.312 kB / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.01074/0.01079, allocations: 6.919 MB / 274.2 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1491/0.1599, allocations: 16.66 MB / 290.9 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000907/0.1608, allocations: 97.47 kB / 291 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002012/0.1628, allocations: 0.7693 MB / 291.8 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004919/0.1677, allocations: 1.872 MB / 293.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004332/0.1721, allocations: 1.348 MB / 295 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005064/0.1771, allocations: 3.356 MB / 298.3 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003062/0.1774, allocations: 131.9 kB / 298.5 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001037/0.1785, allocations: 0.7912 MB / 299.2 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005545/0.179, allocations: 418.1 kB / 299.7 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.713e-05/0.1791, allocations: 41.06 kB / 299.7 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003105/0.1822, allocations: 1.172 MB / 300.9 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001242/0.1824, allocations: 172.3 kB / 301 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004574/0.1828, allocations: 378.5 kB / 301.4 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002522/0.1853, allocations: 2.266 MB / 303.7 MB, free: 11.99 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1854, allocations: 2.391 kB / 303.7 MB, free: 11.99 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1854, allocations: 0 / 303.7 MB, free: 11.99 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.585e-05/0.1854, allocations: 0 / 303.7 MB, free: 11.99 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.002345/0.1877, allocations: 1.972 MB / 305.6 MB, free: 10.67 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.1877, allocations: 11.39 kB / 305.7 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002399/0.188, allocations: 223.4 kB / 305.9 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001487/0.1895, allocations: 1.426 MB / 307.3 MB, free: 9.719 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.958e-05/0.1895, allocations: 19.25 kB / 307.3 MB, free: 9.711 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.621e-05/0.1896, allocations: 38.22 kB / 307.4 MB, free: 9.695 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007883/0.1904, allocations: 429.3 kB / 307.8 MB, free: 9.445 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.1904, allocations: 7.156 kB / 307.8 MB, free: 9.441 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.411e-05/0.1904, allocations: 11.98 kB / 307.8 MB, free: 9.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.1904, allocations: 7.312 kB / 307.8 MB, free: 9.43 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009499/0.1914, allocations: 470.5 kB / 308.3 MB, free: 9.246 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002145/0.1935, allocations: 1.43 MB / 309.7 MB, free: 8.309 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008058/0.1943, allocations: 344.5 kB / 310 MB, free: 8.125 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006156/0.1949, allocations: 374.2 kB / 310.4 MB, free: 7.965 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01029/0.2052, allocations: 7.73 MB / 318.1 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000547/0.2058, allocations: 255.2 kB / 318.4 MB, free: 344 kB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.934e-06/0.2058, allocations: 0 / 318.4 MB, free: 344 kB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.00207/0.2078, allocations: 0.7736 MB / 319.1 MB, free: 15.55 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.372e-05/0.2079, allocations: 62.59 kB / 319.2 MB, free: 15.48 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002082/0.21, allocations: 1.467 MB / 320.7 MB, free: 13.98 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.093e-05/0.21, allocations: 33.7 kB / 320.7 MB, free: 13.94 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007775/0.2108, allocations: 0.7219 MB / 321.4 MB, free: 13.21 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.2109, allocations: 97.88 kB / 321.5 MB, free: 13.12 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000211/0.2111, allocations: 130 kB / 321.7 MB, free: 12.99 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.2113, allocations: 331.6 kB / 322 MB, free: 12.66 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004935/0.2118, allocations: 156.9 kB / 322.1 MB, free: 12.5 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006615/0.2125, allocations: 362 kB / 322.5 MB, free: 12.06 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001159/0.2136, allocations: 0.5386 MB / 323 MB, free: 11.46 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.2136, allocations: 0 / 323 MB, free: 11.46 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001702/0.2153, allocations: 0.7744 MB / 323.8 MB, free: 10.72 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/0.2154, allocations: 11.94 kB / 323.8 MB, free: 10.71 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.992e-05/0.2154, allocations: 40 kB / 323.8 MB, free: 10.67 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003623/0.2158, allocations: 140 kB / 324 MB, free: 10.54 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004401/0.2162, allocations: 108.3 kB / 324.1 MB, free: 10.44 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000799/0.217, allocations: 0.6832 MB / 324.8 MB, free: 9.734 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006381/0.2177, allocations: 71.58 kB / 324.8 MB, free: 9.664 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.236e-05/0.2178, allocations: 36 kB / 324.9 MB, free: 9.629 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.0004559/0.2182, allocations: 280.3 kB / 325.1 MB, free: 9.355 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002705/0.2185, allocations: 202.8 kB / 325.3 MB, free: 9.156 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002008/0.2205, allocations: 0.7295 MB / 326.1 MB, free: 8.426 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.916e-05/0.2205, allocations: 11.98 kB / 326.1 MB, free: 8.414 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.2205, allocations: 1 kB / 326.1 MB, free: 8.414 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.2205, allocations: 3.938 kB / 326.1 MB, free: 8.41 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002533/0.2231, allocations: 1.19 MB / 327.3 MB, free: 7.18 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-05/0.2231, allocations: 35.98 kB / 327.3 MB, free: 7.145 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002692/0.2234, allocations: 46.95 kB / 327.4 MB, free: 7.102 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002983/0.2237, allocations: 131 kB / 327.5 MB, free: 6.973 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.324e-05/0.2237, allocations: 20.06 kB / 327.5 MB, free: 6.953 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007398/0.2245, allocations: 0.673 MB / 328.2 MB, free: 6.262 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.2245, allocations: 3.188 kB / 328.2 MB, free: 6.262 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001588/0.2261, allocations: 0.7289 MB / 328.9 MB, free: 5.508 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004662/0.2265, allocations: 220.6 kB / 329.1 MB, free: 5.293 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001565/0.2267, allocations: 8 kB / 329.1 MB, free: 5.285 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004455/0.2271, allocations: 19.97 kB / 329.2 MB, free: 5.266 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/0.2273, allocations: 51.88 kB / 329.2 MB, free: 5.215 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.319e-05/0.2273, allocations: 20 kB / 329.2 MB, free: 5.195 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001424/0.2287, allocations: 0.9571 MB / 330.2 MB, free: 4.219 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2287, allocations: 4 kB / 330.2 MB, free: 4.215 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009785/0.2297, allocations: 331.6 kB / 330.5 MB, free: 3.891 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.0009828/0.2307, allocations: 0.5992 MB / 331.1 MB, free: 3.398 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001393/0.2321, allocations: 497.1 kB / 331.6 MB, free: 2.922 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2321, allocations: 0 / 331.6 MB, free: 2.922 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007238/0.2328, allocations: 286.5 kB / 331.9 MB, free: 2.641 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001381/0.2342, allocations: 330.6 kB / 332.2 MB, free: 2.324 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003818/0.238, allocations: 2.242 MB / 334.4 MB, free: 40 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006684/0.2387, allocations: 0.5704 MB / 335 MB, free: 15.43 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005623/0.2392, allocations: 197.6 kB / 335.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001804/0.2394, allocations: 92.5 kB / 335.3 MB, free: 15.14 MB / 298.7 MB Notification: Performance of SimCode: time 8.21e-07/0.2394, allocations: 4 kB / 335.3 MB, free: 15.14 MB / 298.7 MB Notification: Performance of Templates: time 0.03629/0.2757, allocations: 19.45 MB / 354.7 MB, free: 11.98 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.046327791991644]