Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001835/0.001835, allocations: 103.5 kB / 20.97 MB, free: 3.453 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00188/0.00188, allocations: 160.8 kB / 24.27 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.607/1.607, allocations: 177 MB / 204.5 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.804e-06/1.804e-06, allocations: 0 / 272.2 MB, free: 1.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.649e-05/2.829e-05, allocations: 9.125 kB / 272.2 MB, free: 1.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.01068/0.01071, allocations: 7.696 MB / 279.9 MB, free: 10.07 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1407/0.1514, allocations: 18.49 MB / 298.4 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009924/0.1524, allocations: 96 kB / 298.5 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002132/0.1545, allocations: 0.7716 MB / 299.2 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005316/0.1598, allocations: 1.884 MB / 301.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004724/0.1646, allocations: 1.343 MB / 302.5 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005319/0.1699, allocations: 3.394 MB / 305.9 MB, free: 11.84 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000371/0.1702, allocations: 131.4 kB / 306 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001254/0.1715, allocations: 0.7904 MB / 306.8 MB, free: 11.54 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006679/0.1722, allocations: 419.5 kB / 307.2 MB, free: 11.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001406/0.1723, allocations: 40.94 kB / 307.2 MB, free: 11.43 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004045/0.1764, allocations: 1.185 MB / 308.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001393/0.1765, allocations: 165.4 kB / 308.6 MB, free: 11.03 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000545/0.177, allocations: 381.8 kB / 308.9 MB, free: 10.9 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003129/0.1802, allocations: 2.275 MB / 311.2 MB, free: 9.676 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.1802, allocations: 0 / 311.2 MB, free: 9.676 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.587e-06/0.1802, allocations: 3.094 kB / 311.2 MB, free: 9.676 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.171e-05/0.1802, allocations: 4 kB / 311.2 MB, free: 9.672 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.002686/0.1829, allocations: 2.196 MB / 313.4 MB, free: 8 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.1829, allocations: 14.23 kB / 313.4 MB, free: 7.996 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002235/0.1831, allocations: 227.3 kB / 313.7 MB, free: 7.879 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001579/0.1847, allocations: 1.422 MB / 315.1 MB, free: 6.645 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.198e-05/0.1847, allocations: 24.66 kB / 315.1 MB, free: 6.621 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.398e-05/0.1848, allocations: 27.95 kB / 315.1 MB, free: 6.594 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006668/0.1855, allocations: 373.9 kB / 315.5 MB, free: 6.223 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.1855, allocations: 0 / 315.5 MB, free: 6.223 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.274e-05/0.1855, allocations: 19.88 kB / 315.5 MB, free: 6.207 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.1856, allocations: 15.98 kB / 315.5 MB, free: 6.191 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007462/0.1863, allocations: 398.5 kB / 315.9 MB, free: 5.801 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002495/0.1888, allocations: 1.73 MB / 317.7 MB, free: 4.02 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006134/0.1894, allocations: 280 kB / 317.9 MB, free: 3.734 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004891/0.1899, allocations: 329.3 kB / 318.2 MB, free: 3.41 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01409/0.204, allocations: 7.852 MB / 326.1 MB, free: 11.36 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006052/0.2046, allocations: 256.7 kB / 326.4 MB, free: 11.09 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 2.084e-06/0.2046, allocations: 0 / 326.4 MB, free: 11.09 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.002041/0.2066, allocations: 0.7271 MB / 327.1 MB, free: 10.36 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.721e-05/0.2067, allocations: 59.34 kB / 327.1 MB, free: 10.29 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002735/0.2094, allocations: 1.968 MB / 329.1 MB, free: 8.273 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.752e-05/0.2095, allocations: 29.7 kB / 329.1 MB, free: 8.238 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009753/0.2105, allocations: 0.8964 MB / 330 MB, free: 7.336 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001223/0.2106, allocations: 107.1 kB / 330.1 MB, free: 7.23 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002292/0.2108, allocations: 147.7 kB / 330.3 MB, free: 7.078 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002799/0.2111, allocations: 0.4965 MB / 330.8 MB, free: 6.574 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000406/0.2115, allocations: 140.9 kB / 330.9 MB, free: 6.434 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006885/0.2122, allocations: 439.7 kB / 331.3 MB, free: 5.883 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001058/0.2132, allocations: 0.582 MB / 331.9 MB, free: 5.176 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.2132, allocations: 4 kB / 331.9 MB, free: 5.172 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001549/0.2148, allocations: 0.7667 MB / 332.7 MB, free: 4.395 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/0.2148, allocations: 11.98 kB / 332.7 MB, free: 4.383 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-05/0.2149, allocations: 36 kB / 332.7 MB, free: 4.348 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003973/0.2153, allocations: 139.6 kB / 332.9 MB, free: 4.207 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004053/0.2157, allocations: 99.89 kB / 333 MB, free: 4.109 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009038/0.2166, allocations: 0.9569 MB / 333.9 MB, free: 3.121 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005759/0.2172, allocations: 65.73 kB / 334 MB, free: 3.059 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.987e-05/0.2172, allocations: 32 kB / 334 MB, free: 3.027 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.0004876/0.2177, allocations: 324.3 kB / 334.3 MB, free: 2.699 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002554/0.218, allocations: 202.8 kB / 334.5 MB, free: 2.5 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001777/0.2197, allocations: 0.7036 MB / 335.2 MB, free: 1.789 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.468e-06/0.2198, allocations: 4 kB / 335.3 MB, free: 1.785 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.2198, allocations: 3.938 kB / 335.3 MB, free: 1.781 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.2198, allocations: 3.984 kB / 335.3 MB, free: 1.777 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002798/0.2226, allocations: 1.51 MB / 336.8 MB, free: 216 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.005e-05/0.2226, allocations: 35.98 kB / 336.8 MB, free: 180 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002129/0.2228, allocations: 39.86 kB / 336.8 MB, free: 140 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002921/0.2231, allocations: 132.6 kB / 337 MB, free: 4 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.04e-05/0.2232, allocations: 20.12 kB / 337 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008706/0.2241, allocations: 0.9412 MB / 337.9 MB, free: 15.01 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.2241, allocations: 0 / 337.9 MB, free: 15.01 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001397/0.2255, allocations: 0.7565 MB / 338.7 MB, free: 14.21 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005547/0.226, allocations: 224.6 kB / 338.9 MB, free: 14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001623/0.2262, allocations: 16.89 kB / 338.9 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003851/0.2266, allocations: 11.98 kB / 338.9 MB, free: 13.97 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001327/0.2267, allocations: 43.89 kB / 339 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.71e-05/0.2268, allocations: 27.98 kB / 339 MB, free: 13.9 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001726/0.2285, allocations: 1.129 MB / 340.1 MB, free: 12.75 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2285, allocations: 0 / 340.1 MB, free: 12.75 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000989/0.2295, allocations: 335.6 kB / 340.5 MB, free: 12.42 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.00101/0.2305, allocations: 0.6095 MB / 341.1 MB, free: 11.8 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001258/0.2317, allocations: 498.4 kB / 341.6 MB, free: 11.3 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.2317, allocations: 4 kB / 341.6 MB, free: 11.3 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006372/0.2324, allocations: 292.2 kB / 341.8 MB, free: 11 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001446/0.2338, allocations: 318.5 kB / 342.2 MB, free: 10.7 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003798/0.2376, allocations: 2.236 MB / 344.4 MB, free: 8.402 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006166/0.2382, allocations: 0.5628 MB / 345 MB, free: 7.801 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005673/0.2388, allocations: 199.9 kB / 345.2 MB, free: 7.602 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/0.239, allocations: 88.5 kB / 345.2 MB, free: 7.516 MB / 298.7 MB Notification: Performance of SimCode: time 8.31e-07/0.239, allocations: 4 kB / 345.2 MB, free: 7.512 MB / 298.7 MB Notification: Performance of Templates: time 0.03813/0.2771, allocations: 19.5 MB / 364.7 MB, free: 4.246 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.266393212019466]