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.002342/0.002342, allocations: 91.61 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.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.002637/0.002637, allocations: 169.3 kB / 24.28 MB, free: 152 kB / 18.57 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 1.573/1.573, allocations: 177.1 MB / 204.6 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] 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.664e-06/1.664e-06, allocations: 0 / 272.3 MB, free: 1.859 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.39e-05/2.556e-05, allocations: 2.312 kB / 272.3 MB, free: 1.855 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.0104/0.01042, allocations: 7.704 MB / 280 MB, free: 10.11 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1464/0.1568, allocations: 18.48 MB / 298.5 MB, free: 14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008495/0.1577, allocations: 94.28 kB / 298.6 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002005/0.1597, allocations: 0.7734 MB / 299.4 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004896/0.1646, allocations: 1.882 MB / 301.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004519/0.1691, allocations: 1.344 MB / 302.6 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004969/0.1741, allocations: 3.385 MB / 306 MB, free: 11.85 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003156/0.1744, allocations: 133.8 kB / 306.1 MB, free: 11.76 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001041/0.1754, allocations: 0.8003 MB / 306.9 MB, free: 11.54 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005519/0.176, allocations: 414.8 kB / 307.3 MB, free: 11.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001182/0.1761, allocations: 45.09 kB / 307.3 MB, free: 11.42 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003463/0.1795, allocations: 1.182 MB / 308.5 MB, free: 11.16 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001279/0.1797, allocations: 166.8 kB / 308.7 MB, free: 11.04 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000441/0.1801, allocations: 381.3 kB / 309.1 MB, free: 10.9 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002378/0.1825, allocations: 2.273 MB / 311.3 MB, free: 9.695 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1825, allocations: 0 / 311.3 MB, free: 9.695 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1825, allocations: 0 / 311.3 MB, free: 9.695 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.535e-05/0.1825, allocations: 0 / 311.3 MB, free: 9.695 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.002471/0.185, allocations: 2.202 MB / 313.5 MB, free: 8.02 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.185, allocations: 12.72 kB / 313.6 MB, free: 8.016 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002297/0.1853, allocations: 224.5 kB / 313.8 MB, free: 7.902 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001611/0.1869, allocations: 1.421 MB / 315.2 MB, free: 6.703 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.143e-05/0.1869, allocations: 24.64 kB / 315.2 MB, free: 6.68 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.752e-05/0.187, allocations: 27.95 kB / 315.2 MB, free: 6.652 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006364/0.1876, allocations: 381.8 kB / 315.6 MB, free: 6.273 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.1876, allocations: 0 / 315.6 MB, free: 6.273 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.917e-05/0.1876, allocations: 11.98 kB / 315.6 MB, free: 6.262 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.165e-05/0.1877, allocations: 12 kB / 315.6 MB, free: 6.25 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007183/0.1884, allocations: 402.4 kB / 316 MB, free: 5.855 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002398/0.1908, allocations: 1.731 MB / 317.8 MB, free: 4.078 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000601/0.1914, allocations: 290.8 kB / 318 MB, free: 3.785 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004768/0.1918, allocations: 320.7 kB / 318.4 MB, free: 3.469 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01329/0.2051, allocations: 7.855 MB / 326.2 MB, free: 11.41 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005766/0.2057, allocations: 244.8 kB / 326.5 MB, free: 11.16 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 2.074e-06/0.2057, allocations: 4 kB / 326.5 MB, free: 11.16 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.001959/0.2077, allocations: 0.7302 MB / 327.2 MB, free: 10.41 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.328e-05/0.2077, allocations: 59.34 kB / 327.2 MB, free: 10.34 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0026/0.2103, allocations: 1.968 MB / 329.2 MB, free: 8.332 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.642e-05/0.2104, allocations: 33.7 kB / 329.2 MB, free: 8.293 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009412/0.2113, allocations: 0.8886 MB / 330.1 MB, free: 7.398 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001941/0.2115, allocations: 103.2 kB / 330.2 MB, free: 7.297 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002196/0.2117, allocations: 143.7 kB / 330.4 MB, free: 7.148 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002735/0.212, allocations: 0.5121 MB / 330.9 MB, free: 6.629 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004386/0.2124, allocations: 140.9 kB / 331 MB, free: 6.488 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008569/0.2133, allocations: 427.8 kB / 331.4 MB, free: 5.945 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001023/0.2143, allocations: 0.5928 MB / 332 MB, free: 5.227 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.2143, allocations: 0.625 kB / 332 MB, free: 5.227 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001529/0.2159, allocations: 0.7591 MB / 332.8 MB, free: 4.457 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.2159, allocations: 12.03 kB / 332.8 MB, free: 4.445 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.625e-05/0.2159, allocations: 36 kB / 332.8 MB, free: 4.41 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000346/0.2163, allocations: 135.6 kB / 333 MB, free: 4.273 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003986/0.2167, allocations: 107.8 kB / 333.1 MB, free: 4.168 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000892/0.2176, allocations: 0.9511 MB / 334 MB, free: 3.188 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005446/0.2181, allocations: 67.64 kB / 334.1 MB, free: 3.121 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.732e-05/0.2182, allocations: 32 kB / 334.1 MB, free: 3.09 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.0004529/0.2187, allocations: 320.3 kB / 334.4 MB, free: 2.766 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002461/0.2189, allocations: 210.7 kB / 334.6 MB, free: 2.559 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001732/0.2206, allocations: 0.7002 MB / 335.3 MB, free: 1.844 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.2206, allocations: 4 kB / 335.4 MB, free: 1.84 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.2206, allocations: 3.938 kB / 335.4 MB, free: 1.836 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.2207, allocations: 0 / 335.4 MB, free: 1.836 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002631/0.2233, allocations: 1.511 MB / 336.9 MB, free: 272 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.398e-05/0.2233, allocations: 35.94 kB / 336.9 MB, free: 236 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002107/0.2235, allocations: 39.91 kB / 336.9 MB, free: 196 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002721/0.2238, allocations: 131.6 kB / 337.1 MB, free: 60 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.857e-05/0.2239, allocations: 16 kB / 337.1 MB, free: 44 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009534/0.2248, allocations: 0.9422 MB / 338 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.2248, allocations: 0 / 338 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001316/0.2261, allocations: 0.7566 MB / 338.8 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004996/0.2266, allocations: 224.6 kB / 339 MB, free: 14.06 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001555/0.2268, allocations: 8 kB / 339 MB, free: 14.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000376/0.2272, allocations: 20.02 kB / 339 MB, free: 14.03 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001347/0.2273, allocations: 51.81 kB / 339.1 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.954e-05/0.2273, allocations: 24 kB / 339.1 MB, free: 13.96 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.00156/0.2289, allocations: 1.129 MB / 340.2 MB, free: 12.81 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2289, allocations: 0 / 340.2 MB, free: 12.81 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009338/0.2298, allocations: 339.5 kB / 340.6 MB, free: 12.48 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.0009587/0.2308, allocations: 0.6036 MB / 341.2 MB, free: 11.87 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00118/0.232, allocations: 0.4955 MB / 341.7 MB, free: 11.36 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.232, allocations: 3.938 kB / 341.7 MB, free: 11.36 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005942/0.2326, allocations: 277.1 kB / 341.9 MB, free: 11.07 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001346/0.2339, allocations: 327 kB / 342.3 MB, free: 10.75 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003619/0.2375, allocations: 2.245 MB / 344.5 MB, free: 8.449 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005933/0.2381, allocations: 0.5628 MB / 345.1 MB, free: 7.848 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005054/0.2386, allocations: 199.9 kB / 345.3 MB, free: 7.648 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001595/0.2388, allocations: 96.48 kB / 345.4 MB, free: 7.555 MB / 298.7 MB Notification: Performance of SimCode: time 7.32e-07/0.2388, allocations: 0 / 345.4 MB, free: 7.555 MB / 298.7 MB Notification: Performance of Templates: time 0.0369/0.2757, allocations: 19.5 MB / 364.9 MB, free: 4.289 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 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.241879591019824]