Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001235/0.001235, allocations: 79.75 kB / 21.18 MB, free: 3.379 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.001238/0.001238, allocations: 161 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9825/0.9825, allocations: 177.1 MB / 205 MB, free: 5.246 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.876e-06/2.876e-06, allocations: 4 kB / 273 MB, free: 1.387 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.154e-05/2.442e-05, allocations: 5.266 kB / 273 MB, free: 1.383 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.006173/0.006198, allocations: 7.746 MB / 280.7 MB, free: 9.598 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1516/0.1578, allocations: 18.54 MB / 299.3 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001089/0.1589, allocations: 97.22 kB / 299.3 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002688/0.1616, allocations: 0.7727 MB / 300.1 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005668/0.1672, allocations: 1.875 MB / 302 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004608/0.1718, allocations: 1.347 MB / 303.3 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004816/0.1766, allocations: 3.456 MB / 306.8 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003719/0.177, allocations: 128.3 kB / 306.9 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001081/0.1781, allocations: 0.7977 MB / 307.7 MB, free: 11.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005633/0.1787, allocations: 414.2 kB / 308.1 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001065/0.1788, allocations: 41.38 kB / 308.2 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003077/0.1818, allocations: 1.178 MB / 309.3 MB, free: 11.04 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001199/0.182, allocations: 172 kB / 309.5 MB, free: 10.9 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004417/0.1824, allocations: 384.5 kB / 309.9 MB, free: 10.76 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002415/0.1848, allocations: 1.79 MB / 311.7 MB, free: 9.719 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.1848, allocations: 0 / 311.7 MB, free: 9.719 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1848, allocations: 0 / 311.7 MB, free: 9.719 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.712e-05/0.1849, allocations: 0 / 311.7 MB, free: 9.719 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.002204/0.1871, allocations: 2.126 MB / 313.8 MB, free: 8.082 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.1871, allocations: 8.688 kB / 313.8 MB, free: 8.082 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002138/0.1873, allocations: 221.3 kB / 314 MB, free: 7.969 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001129/0.1885, allocations: 1.422 MB / 315.5 MB, free: 6.75 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.818e-05/0.1885, allocations: 21.47 kB / 315.5 MB, free: 6.73 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.563e-05/0.1885, allocations: 31.56 kB / 315.5 MB, free: 6.703 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004204/0.189, allocations: 330.6 kB / 315.8 MB, free: 6.371 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.189, allocations: 0 / 315.8 MB, free: 6.371 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.817e-05/0.189, allocations: 12 kB / 315.8 MB, free: 6.359 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.189, allocations: 11.98 kB / 315.8 MB, free: 6.348 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002879/0.1893, allocations: 251.8 kB / 316.1 MB, free: 6.098 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00157/0.1909, allocations: 1.478 MB / 317.6 MB, free: 4.57 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002685/0.1911, allocations: 192.8 kB / 317.8 MB, free: 4.367 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002394/0.1914, allocations: 252.7 kB / 318 MB, free: 4.117 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007355/0.1987, allocations: 7.769 MB / 325.8 MB, free: 12.15 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002807/0.199, allocations: 185.3 kB / 326 MB, free: 11.95 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 2.345e-06/0.199, allocations: 0 / 326 MB, free: 11.95 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008706/0.1999, allocations: 0.5624 MB / 326.5 MB, free: 11.38 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.681e-05/0.1999, allocations: 59.34 kB / 326.6 MB, free: 11.31 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001314/0.2012, allocations: 1.589 MB / 328.2 MB, free: 9.676 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.972e-05/0.2013, allocations: 29.7 kB / 328.2 MB, free: 9.641 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004882/0.2018, allocations: 0.8261 MB / 329 MB, free: 8.809 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.471e-05/0.2018, allocations: 103.2 kB / 329.1 MB, free: 8.707 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.202, allocations: 131.7 kB / 329.3 MB, free: 8.57 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.2021, allocations: 0.4926 MB / 329.7 MB, free: 8.07 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000118/0.2022, allocations: 68.97 kB / 329.8 MB, free: 8.004 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002508/0.2025, allocations: 371.7 kB / 330.2 MB, free: 7.512 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003851/0.2028, allocations: 471.1 kB / 330.6 MB, free: 6.926 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.2028, allocations: 2.25 kB / 330.6 MB, free: 6.926 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006682/0.2035, allocations: 0.6255 MB / 331.3 MB, free: 6.289 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.2035, allocations: 8.906 kB / 331.3 MB, free: 6.281 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.397e-05/0.2036, allocations: 36 kB / 331.3 MB, free: 6.246 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002466/0.2038, allocations: 131.6 kB / 331.4 MB, free: 6.113 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002137/0.204, allocations: 103.8 kB / 331.5 MB, free: 6.012 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004826/0.2045, allocations: 0.921 MB / 332.5 MB, free: 5.059 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003112/0.2048, allocations: 63.61 kB / 332.5 MB, free: 4.996 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.49e-05/0.2049, allocations: 32 kB / 332.6 MB, free: 4.965 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.0001913/0.2051, allocations: 207.5 kB / 332.8 MB, free: 4.754 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.2052, allocations: 205.7 kB / 333 MB, free: 4.555 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007741/0.206, allocations: 0.5831 MB / 333.5 MB, free: 3.961 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.206, allocations: 4 kB / 333.5 MB, free: 3.957 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.206, allocations: 3.938 kB / 333.5 MB, free: 3.953 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.206, allocations: 3.984 kB / 333.5 MB, free: 3.949 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001224/0.2072, allocations: 1.222 MB / 334.8 MB, free: 2.668 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.298e-05/0.2072, allocations: 36 kB / 334.8 MB, free: 2.633 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001039/0.2074, allocations: 39.91 kB / 334.8 MB, free: 2.594 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001588/0.2075, allocations: 123.6 kB / 335 MB, free: 2.469 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.584e-05/0.2075, allocations: 20.86 kB / 335 MB, free: 2.449 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003955/0.2079, allocations: 0.9032 MB / 335.9 MB, free: 1.516 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.2079, allocations: 4 kB / 335.9 MB, free: 1.512 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005251/0.2085, allocations: 0.6393 MB / 336.5 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002311/0.2087, allocations: 228.5 kB / 336.8 MB, free: 0.6133 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.928e-05/0.2088, allocations: 4 kB / 336.8 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001875/0.209, allocations: 22.53 kB / 336.8 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.238e-05/0.2091, allocations: 43.89 kB / 336.8 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.726e-05/0.2091, allocations: 24.03 kB / 336.8 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0007669/0.2098, allocations: 0.8945 MB / 337.7 MB, free: 15.61 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.2098, allocations: 4 kB / 337.7 MB, free: 15.61 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006443/0.2105, allocations: 327.6 kB / 338.1 MB, free: 15.29 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.0008105/0.2113, allocations: 0.6066 MB / 338.7 MB, free: 14.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006611/0.212, allocations: 372.4 kB / 339 MB, free: 14.3 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.212, allocations: 0 / 339 MB, free: 14.3 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002426/0.2122, allocations: 220.1 kB / 339.3 MB, free: 14.07 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007906/0.213, allocations: 320.5 kB / 339.6 MB, free: 13.76 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002339/0.2153, allocations: 2.113 MB / 341.7 MB, free: 11.59 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001374/0.2155, allocations: 219 kB / 341.9 MB, free: 11.36 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003577/0.2158, allocations: 203.9 kB / 342.1 MB, free: 11.15 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000107/0.2159, allocations: 92.5 kB / 342.2 MB, free: 11.06 MB / 298.7 MB Notification: Performance of SimCode: time 1.092e-06/0.2159, allocations: 0 / 342.2 MB, free: 11.06 MB / 298.7 MB Notification: Performance of Templates: time 0.02504/0.241, allocations: 19.57 MB / 361.8 MB, free: 7.723 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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.424827628303319]