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.001397/0.001397, allocations: 75.91 kB / 21.18 MB, free: 3.395 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.001535/0.001535, allocations: 145.5 kB / 24.54 MB, free: 36 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 0.9853/0.9853, allocations: 173.4 MB / 201.1 MB, free: 9.344 MB / 186.7 MB " [Timeout remaining time 179] 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 1.903e-06/1.903e-06, allocations: 3.938 kB / 268 MB, free: 6.465 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.056e-05/3.246e-05, allocations: 6.312 kB / 268 MB, free: 6.457 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.00818/0.008212, allocations: 7.739 MB / 275.7 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1623/0.1705, allocations: 18.5 MB / 294.2 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001882/0.1724, allocations: 93.94 kB / 294.3 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002975/0.1754, allocations: 0.7772 MB / 295.1 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008723/0.1841, allocations: 1.869 MB / 297 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007123/0.1913, allocations: 1.344 MB / 298.3 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006273/0.1975, allocations: 3.429 MB / 301.7 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004756/0.198, allocations: 129.9 kB / 301.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001743/0.1997, allocations: 0.787 MB / 302.6 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009266/0.2007, allocations: 421.6 kB / 303.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001863/0.2009, allocations: 41.25 kB / 303.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004527/0.2054, allocations: 1.165 MB / 304.3 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001938/0.2056, allocations: 173.4 kB / 304.4 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006996/0.2063, allocations: 389.5 kB / 304.8 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00383/0.2101, allocations: 1.785 MB / 306.6 MB, free: 11.82 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.2101, allocations: 0 / 306.6 MB, free: 11.82 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2101, allocations: 0 / 306.6 MB, free: 11.82 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.197e-05/0.2102, allocations: 0 / 306.6 MB, free: 11.82 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.002479/0.2127, allocations: 2.121 MB / 308.7 MB, free: 10.36 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.346e-05/0.2127, allocations: 13.11 kB / 308.7 MB, free: 10.35 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002762/0.213, allocations: 226.6 kB / 309 MB, free: 10.24 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001391/0.2144, allocations: 1.425 MB / 310.4 MB, free: 9.457 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.819e-05/0.2144, allocations: 13.06 kB / 310.4 MB, free: 9.453 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.459e-05/0.2145, allocations: 33.33 kB / 310.4 MB, free: 9.438 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005138/0.215, allocations: 327.3 kB / 310.7 MB, free: 9.258 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.215, allocations: 3 kB / 310.7 MB, free: 9.258 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.845e-05/0.215, allocations: 7.062 kB / 310.8 MB, free: 9.254 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.454e-05/0.215, allocations: 13.33 kB / 310.8 MB, free: 9.246 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003202/0.2154, allocations: 246.4 kB / 311 MB, free: 9.191 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001747/0.2171, allocations: 1.486 MB / 312.5 MB, free: 8.195 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002932/0.2174, allocations: 186.5 kB / 312.7 MB, free: 8.109 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000273/0.2177, allocations: 251.9 kB / 312.9 MB, free: 8.035 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007761/0.2254, allocations: 7.767 MB / 320.7 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002887/0.2257, allocations: 192.1 kB / 320.9 MB, free: 440 kB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 2.946e-06/0.2257, allocations: 0 / 320.9 MB, free: 440 kB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.0009834/0.2267, allocations: 0.562 MB / 321.4 MB, free: 15.86 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.352e-05/0.2268, allocations: 55.41 kB / 321.5 MB, free: 15.79 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001447/0.2282, allocations: 1.589 MB / 323.1 MB, free: 14.16 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.253e-05/0.2282, allocations: 29.7 kB / 323.1 MB, free: 14.12 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005504/0.2288, allocations: 0.8325 MB / 323.9 MB, free: 13.29 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.356e-05/0.2289, allocations: 102.2 kB / 324 MB, free: 13.19 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001288/0.229, allocations: 127.7 kB / 324.2 MB, free: 13.05 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.2291, allocations: 0.4965 MB / 324.7 MB, free: 12.55 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.2293, allocations: 72.95 kB / 324.7 MB, free: 12.48 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002657/0.2295, allocations: 363.7 kB / 325.1 MB, free: 12 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004115/0.2299, allocations: 467.1 kB / 325.5 MB, free: 11.41 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.2299, allocations: 0 / 325.5 MB, free: 11.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007272/0.2307, allocations: 0.621 MB / 326.2 MB, free: 10.79 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/0.2307, allocations: 11.94 kB / 326.2 MB, free: 10.77 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.082e-05/0.2307, allocations: 40 kB / 326.2 MB, free: 10.73 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002573/0.231, allocations: 127.6 kB / 326.3 MB, free: 10.61 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002326/0.2312, allocations: 107.8 kB / 326.4 MB, free: 10.5 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005667/0.2318, allocations: 0.918 MB / 327.4 MB, free: 9.551 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004574/0.2322, allocations: 63.61 kB / 327.4 MB, free: 9.488 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.722e-05/0.2323, allocations: 32 kB / 327.5 MB, free: 9.457 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.000283/0.2326, allocations: 196.3 kB / 327.6 MB, free: 9.254 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000204/0.2328, allocations: 206.8 kB / 327.8 MB, free: 9.051 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008513/0.2337, allocations: 0.6004 MB / 328.4 MB, free: 8.449 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.2337, allocations: 4 kB / 328.5 MB, free: 8.445 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.2337, allocations: 3.5 kB / 328.5 MB, free: 8.445 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.2337, allocations: 3.938 kB / 328.5 MB, free: 8.441 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001286/0.235, allocations: 1.211 MB / 329.7 MB, free: 7.176 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.723e-05/0.235, allocations: 39.98 kB / 329.7 MB, free: 7.137 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001056/0.2351, allocations: 39.91 kB / 329.7 MB, free: 7.098 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001662/0.2353, allocations: 127.6 kB / 329.9 MB, free: 6.969 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.723e-05/0.2353, allocations: 19.98 kB / 329.9 MB, free: 6.949 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004388/0.2357, allocations: 0.9079 MB / 330.8 MB, free: 6.012 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.077e-06/0.2357, allocations: 4 kB / 330.8 MB, free: 6.008 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005858/0.2363, allocations: 0.6402 MB / 331.4 MB, free: 5.332 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002693/0.2366, allocations: 224.7 kB / 331.7 MB, free: 5.113 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.187e-05/0.2367, allocations: 3.984 kB / 331.7 MB, free: 5.109 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001968/0.2369, allocations: 19.98 kB / 331.7 MB, free: 5.09 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.237, allocations: 43.89 kB / 331.7 MB, free: 5.047 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.283e-05/0.237, allocations: 23.98 kB / 331.8 MB, free: 5.023 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000865/0.2379, allocations: 0.8906 MB / 332.6 MB, free: 4.113 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2379, allocations: 0 / 332.6 MB, free: 4.113 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009124/0.2388, allocations: 335.6 kB / 333 MB, free: 3.785 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.0007066/0.2395, allocations: 0.6021 MB / 333.6 MB, free: 3.277 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005789/0.2401, allocations: 372.9 kB / 333.9 MB, free: 2.898 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2401, allocations: 0 / 333.9 MB, free: 2.898 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002346/0.2403, allocations: 217.7 kB / 334.2 MB, free: 2.672 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008265/0.2411, allocations: 324 kB / 334.5 MB, free: 2.359 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002417/0.2436, allocations: 2.11 MB / 336.6 MB, free: 200 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001396/0.2437, allocations: 211.2 kB / 336.8 MB, free: 15.96 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000352/0.2441, allocations: 203.8 kB / 337 MB, free: 15.76 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.2442, allocations: 92.5 kB / 337.1 MB, free: 15.67 MB / 298.7 MB Notification: Performance of SimCode: time 7.81e-07/0.2442, allocations: 0 / 337.1 MB, free: 15.67 MB / 298.7 MB Notification: Performance of Templates: time 0.02698/0.2711, allocations: 19.55 MB / 356.6 MB, free: 12.37 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 240] 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","",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.4621822689659894]