Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001013/0.001013, allocations: 75.75 kB / 21.97 MB, free: 2.605 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.0009367/0.0009367, allocations: 164.2 kB / 25.33 MB, free: 9.445 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8896/0.8896, allocations: 158.6 MB / 187.2 MB, free: 2.52 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 251 MB, free: 3.609 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.78e-05/1.905e-05, allocations: 2.312 kB / 251 MB, free: 3.605 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005903/0.005922, allocations: 7.424 MB / 258.5 MB, free: 12.14 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01523/0.02115, allocations: 17.62 MB / 276.1 MB, free: 10.46 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001125/0.02228, allocations: 98.88 kB / 276.2 MB, free: 10.36 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001785/0.02406, allocations: 0.7475 MB / 276.9 MB, free: 9.609 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004479/0.02854, allocations: 1.842 MB / 278.8 MB, free: 7.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003111/0.03165, allocations: 1.304 MB / 280.1 MB, free: 6.438 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003702/0.03535, allocations: 3.352 MB / 283.4 MB, free: 3.074 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003407/0.03569, allocations: 128.9 kB / 283.5 MB, free: 2.926 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008647/0.03656, allocations: 0.7286 MB / 284.3 MB, free: 2.195 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003836/0.03694, allocations: 402.7 kB / 284.7 MB, free: 1.801 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.219e-05/0.03701, allocations: 43.94 kB / 284.7 MB, free: 1.758 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001918/0.03893, allocations: 1.05 MB / 285.8 MB, free: 0.707 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001183/0.03905, allocations: 182.8 kB / 285.9 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002954/0.03935, allocations: 374.8 kB / 286.3 MB, free: 164 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001841/0.04119, allocations: 1.806 MB / 288.1 MB, free: 14.35 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.04119, allocations: 0 / 288.1 MB, free: 14.35 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.04119, allocations: 0 / 288.1 MB, free: 14.35 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.848e-05/0.04121, allocations: 0 / 288.1 MB, free: 14.35 MB / 282.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.001947/0.04316, allocations: 2.144 MB / 290.3 MB, free: 12.15 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.0432, allocations: 15.98 kB / 290.3 MB, free: 12.14 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001851/0.04338, allocations: 222.7 kB / 290.5 MB, free: 11.92 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001183/0.04457, allocations: 1.428 MB / 291.9 MB, free: 10.41 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.734e-05/0.04458, allocations: 20.66 kB / 291.9 MB, free: 10.39 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.553e-05/0.04464, allocations: 24 kB / 292 MB, free: 10.37 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004455/0.04509, allocations: 326.6 kB / 292.3 MB, free: 10.04 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.0451, allocations: 0 / 292.3 MB, free: 10.04 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.939e-05/0.04513, allocations: 12 kB / 292.3 MB, free: 10.03 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/0.04514, allocations: 15.98 kB / 292.3 MB, free: 10.01 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003208/0.04546, allocations: 247.8 kB / 292.5 MB, free: 9.77 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001636/0.0471, allocations: 1.489 MB / 294 MB, free: 8.234 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002779/0.04737, allocations: 188 kB / 294.2 MB, free: 8.039 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002725/0.04765, allocations: 252.7 kB / 294.5 MB, free: 7.789 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1413/0.1889, allocations: 7.794 MB / 302.3 MB, free: 43.21 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003846/0.1893, allocations: 184.8 kB / 302.4 MB, free: 43.16 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 2.815e-06/0.1893, allocations: 0 / 302.4 MB, free: 43.16 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.001285/0.1906, allocations: 0.5576 MB / 303 MB, free: 43.12 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.339e-05/0.1906, allocations: 64.97 kB / 303.1 MB, free: 43.05 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001709/0.1923, allocations: 1.595 MB / 304.7 MB, free: 42.77 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.364e-05/0.1924, allocations: 31.77 kB / 304.7 MB, free: 42.74 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004941/0.1928, allocations: 0.8323 MB / 305.5 MB, free: 42.56 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.047e-05/0.1929, allocations: 103.3 kB / 305.6 MB, free: 42.51 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001421/0.1931, allocations: 130.4 kB / 305.7 MB, free: 42.47 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.174e-05/0.1931, allocations: 0.4953 MB / 306.2 MB, free: 41.99 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001452/0.1933, allocations: 71.92 kB / 306.3 MB, free: 41.99 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002314/0.1935, allocations: 364.7 kB / 306.7 MB, free: 41.63 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003807/0.1939, allocations: 470 kB / 307.1 MB, free: 41.28 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.281e-06/0.1939, allocations: 3.906 kB / 307.1 MB, free: 41.28 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007767/0.1947, allocations: 0.6165 MB / 307.8 MB, free: 41.14 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.411e-05/0.1947, allocations: 9.922 kB / 307.8 MB, free: 41.14 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.433e-05/0.1948, allocations: 43.34 kB / 307.8 MB, free: 41.14 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002856/0.195, allocations: 132 kB / 307.9 MB, free: 41.13 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002685/0.1953, allocations: 102.4 kB / 308 MB, free: 41.13 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004246/0.1957, allocations: 0.9195 MB / 309 MB, free: 40.33 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003256/0.1961, allocations: 60.28 kB / 309 MB, free: 40.32 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.714e-05/0.1961, allocations: 35.2 kB / 309 MB, free: 40.32 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.0001966/0.1963, allocations: 197.6 kB / 309.2 MB, free: 40.16 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001501/0.1965, allocations: 208.5 kB / 309.4 MB, free: 40.06 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009519/0.1974, allocations: 0.5947 MB / 310 MB, free: 39.97 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.1974, allocations: 3.188 kB / 310 MB, free: 39.97 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.1974, allocations: 8.203 kB / 310 MB, free: 39.96 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.1974, allocations: 0.7969 kB / 310 MB, free: 39.96 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001377/0.1988, allocations: 1.223 MB / 311.3 MB, free: 39.61 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.064e-05/0.1988, allocations: 37.58 kB / 311.3 MB, free: 39.61 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001224/0.199, allocations: 41.5 kB / 311.3 MB, free: 39.61 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001793/0.1991, allocations: 117.1 kB / 311.5 MB, free: 39.59 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.97e-05/0.1992, allocations: 18.2 kB / 311.5 MB, free: 39.59 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003389/0.1995, allocations: 0.9065 MB / 312.4 MB, free: 38.8 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.1995, allocations: 6.25 kB / 312.4 MB, free: 38.79 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006064/0.2001, allocations: 0.6425 MB / 313 MB, free: 38.45 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002471/0.2004, allocations: 230.1 kB / 313.3 MB, free: 38.35 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.145e-05/0.2005, allocations: 11.44 kB / 313.3 MB, free: 38.35 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002019/0.2007, allocations: 22.55 kB / 313.3 MB, free: 38.35 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.2008, allocations: 42.08 kB / 313.3 MB, free: 38.35 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.499e-05/0.2008, allocations: 22.41 kB / 313.4 MB, free: 38.35 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0009723/0.2018, allocations: 0.8962 MB / 314.3 MB, free: 38.16 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2018, allocations: 4 kB / 314.3 MB, free: 38.16 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007814/0.2026, allocations: 340.2 kB / 314.6 MB, free: 38.15 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.0007228/0.2033, allocations: 0.6162 MB / 315.2 MB, free: 38.04 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005098/0.2038, allocations: 369.3 kB / 315.6 MB, free: 37.96 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.2038, allocations: 448 / 315.6 MB, free: 37.96 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002022/0.204, allocations: 224.6 kB / 315.8 MB, free: 37.88 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006143/0.2046, allocations: 279.7 kB / 316.1 MB, free: 37.84 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001966/0.2066, allocations: 2.119 MB / 318.2 MB, free: 36.79 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001201/0.2067, allocations: 212.7 kB / 318.4 MB, free: 36.7 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000337/0.207, allocations: 201 kB / 318.6 MB, free: 36.65 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.2072, allocations: 91.78 kB / 318.7 MB, free: 36.65 MB / 282.7 MB Notification: Performance of SimCode: time 6.42e-07/0.2072, allocations: 0 / 318.7 MB, free: 36.65 MB / 282.7 MB Notification: Performance of Templates: time 0.02162/0.2288, allocations: 19.64 MB / 338.3 MB, free: 21.59 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.255634339991957]