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.002351/0.002351, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.002532/0.002532, allocations: 153.1 kB / 24.27 MB, free: 168 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.533/1.533, allocations: 173.3 MB / 200.8 MB, free: 9.328 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 1.172e-06/1.172e-06, allocations: 0 / 267.3 MB, free: 6.766 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.378e-05/2.495e-05, allocations: 2.312 kB / 267.3 MB, free: 6.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009959/0.009984, allocations: 7.696 MB / 275 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1421/0.152, allocations: 18.45 MB / 293.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00089/0.1529, allocations: 96.25 kB / 293.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002236/0.1552, allocations: 0.7668 MB / 294.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005375/0.1605, allocations: 1.877 MB / 296.2 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004443/0.165, allocations: 1.343 MB / 297.5 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005717/0.1707, allocations: 3.356 MB / 300.9 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003545/0.1711, allocations: 138.2 kB / 301 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001225/0.1723, allocations: 0.7947 MB / 301.8 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005943/0.1729, allocations: 417.4 kB / 302.2 MB, free: 12.6 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001134/0.173, allocations: 42.38 kB / 302.3 MB, free: 12.6 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003821/0.1768, allocations: 1.167 MB / 303.4 MB, free: 12.56 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001448/0.177, allocations: 172.9 kB / 303.6 MB, free: 12.49 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004729/0.1774, allocations: 376.9 kB / 304 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002955/0.1804, allocations: 2.271 MB / 306.2 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.1804, allocations: 0 / 306.2 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1804, allocations: 0 / 306.2 MB, free: 11.75 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.866e-05/0.1804, allocations: 2.844 kB / 306.2 MB, free: 11.75 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.002708/0.1831, allocations: 2.2 MB / 308.4 MB, free: 10.1 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.1832, allocations: 10.08 kB / 308.5 MB, free: 10.1 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002203/0.1834, allocations: 222.7 kB / 308.7 MB, free: 9.988 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001563/0.1849, allocations: 1.432 MB / 310.1 MB, free: 9.039 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.943e-05/0.185, allocations: 17.59 kB / 310.1 MB, free: 9.031 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.703e-05/0.185, allocations: 31.61 kB / 310.2 MB, free: 9.02 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006408/0.1857, allocations: 378 kB / 310.5 MB, free: 8.816 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.1857, allocations: 3.094 kB / 310.5 MB, free: 8.816 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.078e-05/0.1857, allocations: 10.97 kB / 310.5 MB, free: 8.809 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.1857, allocations: 9.625 kB / 310.5 MB, free: 8.805 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007651/0.1865, allocations: 401.7 kB / 310.9 MB, free: 8.684 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002421/0.1889, allocations: 1.729 MB / 312.7 MB, free: 7.559 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006386/0.1896, allocations: 286 kB / 312.9 MB, free: 7.43 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005033/0.1901, allocations: 331.2 kB / 313.3 MB, free: 7.312 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01146/0.2015, allocations: 7.845 MB / 321.1 MB, free: 15.49 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00058/0.2021, allocations: 244.8 kB / 321.4 MB, free: 15.24 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 1.954e-06/0.2021, allocations: 0 / 321.4 MB, free: 15.24 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.001989/0.2041, allocations: 0.7273 MB / 322.1 MB, free: 14.51 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.224e-05/0.2041, allocations: 59.41 kB / 322.1 MB, free: 14.44 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00262/0.2068, allocations: 1.972 MB / 324.1 MB, free: 12.42 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.394e-05/0.2068, allocations: 29.7 kB / 324.1 MB, free: 12.39 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009693/0.2078, allocations: 0.8952 MB / 325 MB, free: 11.48 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001198/0.2079, allocations: 104.8 kB / 325.1 MB, free: 11.38 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002461/0.2081, allocations: 147.7 kB / 325.3 MB, free: 11.23 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002975/0.2084, allocations: 0.5043 MB / 325.8 MB, free: 10.72 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003851/0.2088, allocations: 136.9 kB / 325.9 MB, free: 10.59 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006665/0.2095, allocations: 431.3 kB / 326.3 MB, free: 10.04 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001145/0.2106, allocations: 0.5932 MB / 326.9 MB, free: 9.352 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.074e-06/0.2106, allocations: 4 kB / 326.9 MB, free: 9.348 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001468/0.2121, allocations: 0.7414 MB / 327.7 MB, free: 8.617 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.627e-05/0.2121, allocations: 15.94 kB / 327.7 MB, free: 8.602 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.385e-05/0.2122, allocations: 44 kB / 327.7 MB, free: 8.559 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003644/0.2126, allocations: 137.1 kB / 327.9 MB, free: 8.422 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004027/0.213, allocations: 99.83 kB / 328 MB, free: 8.324 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009101/0.2139, allocations: 0.9523 MB / 328.9 MB, free: 7.34 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005506/0.2144, allocations: 71.62 kB / 329 MB, free: 7.27 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.01e-05/0.2145, allocations: 35.94 kB / 329 MB, free: 7.234 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.0004746/0.215, allocations: 324.3 kB / 329.3 MB, free: 6.906 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002518/0.2152, allocations: 202.8 kB / 329.5 MB, free: 6.707 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001771/0.217, allocations: 0.7131 MB / 330.3 MB, free: 5.988 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.217, allocations: 0 / 330.3 MB, free: 5.988 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.217, allocations: 0 / 330.3 MB, free: 5.988 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.217, allocations: 7.938 kB / 330.3 MB, free: 5.98 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002627/0.2197, allocations: 1.506 MB / 331.8 MB, free: 4.422 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.608e-05/0.2197, allocations: 36 kB / 331.8 MB, free: 4.387 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002052/0.2199, allocations: 36.66 kB / 331.8 MB, free: 4.352 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002823/0.2202, allocations: 135.5 kB / 332 MB, free: 4.215 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.18e-05/0.2202, allocations: 16 kB / 332 MB, free: 4.199 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008625/0.2211, allocations: 0.9484 MB / 332.9 MB, free: 3.223 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.2211, allocations: 3.312 kB / 332.9 MB, free: 3.223 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001441/0.2225, allocations: 0.7534 MB / 333.7 MB, free: 2.434 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005003/0.223, allocations: 220.6 kB / 333.9 MB, free: 2.219 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001519/0.2232, allocations: 8 kB / 333.9 MB, free: 2.211 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003846/0.2236, allocations: 24.02 kB / 333.9 MB, free: 2.188 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001371/0.2237, allocations: 51.81 kB / 334 MB, free: 2.137 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.87e-05/0.2238, allocations: 20 kB / 334 MB, free: 2.117 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001585/0.2254, allocations: 1.133 MB / 335.1 MB, free: 0.9648 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2254, allocations: 0 / 335.1 MB, free: 0.9648 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001099/0.2265, allocations: 331.6 kB / 335.5 MB, free: 0.6406 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.000921/0.2274, allocations: 0.5997 MB / 336.1 MB, free: 140 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001217/0.2286, allocations: 0.4935 MB / 336.6 MB, free: 15.63 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.2286, allocations: 0 / 336.6 MB, free: 15.63 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006457/0.2292, allocations: 288.2 kB / 336.8 MB, free: 15.34 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001379/0.2306, allocations: 326.4 kB / 337.2 MB, free: 15.02 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003685/0.2343, allocations: 2.236 MB / 339.4 MB, free: 12.73 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006433/0.2349, allocations: 0.5628 MB / 340 MB, free: 12.13 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005128/0.2355, allocations: 199.9 kB / 340.2 MB, free: 11.93 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001641/0.2356, allocations: 92.5 kB / 340.2 MB, free: 11.84 MB / 298.7 MB Notification: Performance of SimCode: time 7.72e-07/0.2356, allocations: 0 / 340.2 MB, free: 11.84 MB / 298.7 MB Notification: Performance of Templates: time 0.03687/0.2725, allocations: 19.46 MB / 359.7 MB, free: 8.637 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","/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.197122226003557]