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.0009796/0.0009796, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00157/0.00255, allocations: 449.8 kB / 10.44 MB, free: 252 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.0009377/0.0009377, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001258/0.002195, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9626/0.9626, allocations: 177.2 MB / 189.8 MB, free: 5.238 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08788/1.051, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.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 1.953e-06/1.953e-06, allocations: 0 / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.152e-05/2.347e-05, allocations: 5.828 kB / 244.7 MB, free: 14.22 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.007766/0.00779, allocations: 7.655 MB / 252.4 MB, free: 6.523 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02277/0.03056, allocations: 18.58 MB / 270.9 MB, free: 3.871 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002173/0.03273, allocations: 94.94 kB / 271 MB, free: 3.777 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002689/0.03542, allocations: 0.7916 MB / 271.8 MB, free: 2.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007619/0.04304, allocations: 1.824 MB / 273.6 MB, free: 1.145 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1358/0.1789, allocations: 1.299 MB / 274.9 MB, free: 3.902 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004091/0.1829, allocations: 3.365 MB / 278.3 MB, free: 3.594 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003199/0.1833, allocations: 141.7 kB / 278.4 MB, free: 3.508 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002177/0.1854, allocations: 1.745 MB / 280.2 MB, free: 3.246 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000655/0.1861, allocations: 434.6 kB / 280.6 MB, free: 3.168 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001022/0.1862, allocations: 44.28 kB / 280.7 MB, free: 3.164 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002775/0.189, allocations: 1.233 MB / 281.9 MB, free: 3.125 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00012/0.1891, allocations: 134.7 kB / 282 MB, free: 3.059 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004205/0.1895, allocations: 345.8 kB / 282.4 MB, free: 2.988 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00254/0.1921, allocations: 1.678 MB / 284 MB, free: 2.715 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.463e-05/0.1921, allocations: 0 / 284 MB, free: 2.715 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1921, allocations: 0 / 284 MB, free: 2.715 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.973e-05/0.1921, allocations: 0 / 284 MB, free: 2.715 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.001841/0.1939, allocations: 2.334 MB / 286.4 MB, free: 17.47 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.177e-05/0.194, allocations: 10.19 kB / 286.4 MB, free: 17.47 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001559/0.1941, allocations: 139 kB / 286.5 MB, free: 17.47 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009898/0.1951, allocations: 1.112 MB / 287.6 MB, free: 16.94 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.758e-05/0.1951, allocations: 21.47 kB / 287.7 MB, free: 16.93 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.393e-05/0.1952, allocations: 34.66 kB / 287.7 MB, free: 16.93 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004132/0.1956, allocations: 289.6 kB / 288 MB, free: 16.87 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.1956, allocations: 0 / 288 MB, free: 16.87 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.728e-05/0.1956, allocations: 8.312 kB / 288 MB, free: 16.87 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.475e-05/0.1956, allocations: 16.72 kB / 288 MB, free: 16.87 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001801/0.1958, allocations: 110.4 kB / 288.1 MB, free: 16.87 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001083/0.1969, allocations: 0.8068 MB / 288.9 MB, free: 16.65 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001949/0.1971, allocations: 178.7 kB / 289.1 MB, free: 16.58 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001814/0.1973, allocations: 192.8 kB / 289.3 MB, free: 16.57 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01131/0.2086, allocations: 11.56 MB / 300.8 MB, free: 10.03 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002368/0.2088, allocations: 146.4 kB / 301 MB, free: 9.934 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 3.757e-06/0.2088, allocations: 2.812 kB / 301 MB, free: 9.934 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005832/0.2094, allocations: 345.3 kB / 301.3 MB, free: 9.668 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.68e-05/0.2095, allocations: 66.81 kB / 301.4 MB, free: 9.598 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007773/0.2102, allocations: 1.318 MB / 302.7 MB, free: 8.746 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.715e-05/0.2103, allocations: 33.41 kB / 302.7 MB, free: 8.711 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000191/0.2105, allocations: 414.9 kB / 303.1 MB, free: 8.434 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.313e-05/0.2105, allocations: 99.55 kB / 303.2 MB, free: 8.352 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.594e-05/0.2106, allocations: 113.3 kB / 303.3 MB, free: 8.258 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.289e-05/0.2107, allocations: 323.4 kB / 303.7 MB, free: 7.949 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.266e-05/0.2108, allocations: 44.41 kB / 303.7 MB, free: 7.914 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/0.2109, allocations: 248.7 kB / 303.9 MB, free: 7.609 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002523/0.2111, allocations: 370 kB / 304.3 MB, free: 7.23 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-06/0.2112, allocations: 1.312 kB / 304.3 MB, free: 7.23 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0003916/0.2115, allocations: 415.2 kB / 304.7 MB, free: 6.938 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.2116, allocations: 8 kB / 304.7 MB, free: 6.93 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.314e-05/0.2116, allocations: 12 kB / 304.7 MB, free: 6.918 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001561/0.2118, allocations: 75.14 kB / 304.8 MB, free: 6.855 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002074/0.212, allocations: 112.6 kB / 304.9 MB, free: 6.766 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003175/0.2123, allocations: 0.5771 MB / 305.5 MB, free: 6.191 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002849/0.2126, allocations: 67.12 kB / 305.6 MB, free: 6.129 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.132e-05/0.2126, allocations: 20 kB / 305.6 MB, free: 6.109 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.0001669/0.2128, allocations: 142.4 kB / 305.7 MB, free: 5.969 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.552e-05/0.2129, allocations: 132.3 kB / 305.8 MB, free: 5.883 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006163/0.2135, allocations: 443.7 kB / 306.3 MB, free: 5.508 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.297e-06/0.2135, allocations: 4 kB / 306.3 MB, free: 5.504 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.894e-06/0.2135, allocations: 1.688 kB / 306.3 MB, free: 5.504 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.702e-06/0.2135, allocations: 3.984 kB / 306.3 MB, free: 5.5 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008481/0.2143, allocations: 0.8913 MB / 307.2 MB, free: 4.766 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.103e-05/0.2144, allocations: 4 kB / 307.2 MB, free: 4.762 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001062/0.2145, allocations: 44.03 kB / 307.2 MB, free: 4.719 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001849/0.2147, allocations: 192.2 kB / 307.4 MB, free: 4.531 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000113/0.2148, allocations: 70.25 kB / 307.5 MB, free: 4.465 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.917e-05/0.2148, allocations: 10.75 kB / 307.5 MB, free: 4.457 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002766/0.2151, allocations: 0.5614 MB / 308.1 MB, free: 3.879 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2151, allocations: 0 / 308.1 MB, free: 3.879 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003096/0.2154, allocations: 386.8 kB / 308.4 MB, free: 3.484 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.083e-05/0.2155, allocations: 7.984 kB / 308.4 MB, free: 3.477 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001843/0.2156, allocations: 20.86 kB / 308.5 MB, free: 3.457 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.959e-05/0.2157, allocations: 27.95 kB / 308.5 MB, free: 3.43 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.37e-05/0.2157, allocations: 19.92 kB / 308.5 MB, free: 3.41 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004012/0.2161, allocations: 0.6804 MB / 309.2 MB, free: 2.793 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2161, allocations: 0 / 309.2 MB, free: 2.793 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005963/0.2167, allocations: 335.5 kB / 309.5 MB, free: 2.465 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.0006701/0.2174, allocations: 0.6642 MB / 310.2 MB, free: 1.918 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003512/0.2177, allocations: 286.2 kB / 310.5 MB, free: 1.641 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.928e-05/0.2178, allocations: 20 kB / 310.5 MB, free: 1.621 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001771/0.2179, allocations: 162.4 kB / 310.6 MB, free: 1.453 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001497/0.2194, allocations: 2.956 MB / 313.6 MB, free: 13.94 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003763/0.2232, allocations: 2.013 MB / 315.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001292/0.2233, allocations: 211.2 kB / 315.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003368/0.2237, allocations: 203.9 kB / 316 MB, free: 11.46 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003345/0.224, allocations: 317.1 kB / 316.3 MB, free: 11.15 MB / 298.7 MB Notification: Performance of SimCode: time 8.22e-07/0.224, allocations: 0 / 316.3 MB, free: 11.15 MB / 298.7 MB Notification: Performance of Templates: time 0.02512/0.2491, allocations: 22.98 MB / 339.3 MB, free: 4.516 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.01530540548265]