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.0009869/0.0009869, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001376/0.002363, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.0009648/0.0009648, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001507/0.002472, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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 0.9692/0.9692, allocations: 173.4 MB / 185.8 MB, free: 8.984 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08251/1.052, allocations: 52.49 MB / 238.3 MB, free: 4.43 MB / 234.7 MB " [Timeout remaining time 179] 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.463e-06/1.463e-06, allocations: 0 / 239.5 MB, free: 3.184 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.967e-05/2.113e-05, allocations: 6.312 kB / 239.5 MB, free: 3.176 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.006348/0.006369, allocations: 7.636 MB / 247.2 MB, free: 11.51 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01861/0.02498, allocations: 18.54 MB / 265.7 MB, free: 8.902 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001001/0.02598, allocations: 94.94 kB / 265.8 MB, free: 8.809 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001479/0.02746, allocations: 0.7877 MB / 266.6 MB, free: 8.016 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00398/0.03144, allocations: 1.832 MB / 268.4 MB, free: 6.168 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003063/0.0345, allocations: 1.309 MB / 269.7 MB, free: 4.852 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003759/0.03826, allocations: 3.328 MB / 273.1 MB, free: 1.512 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003049/0.03857, allocations: 148.8 kB / 273.2 MB, free: 1.332 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1177/0.1563, allocations: 1.689 MB / 274.9 MB, free: 6.363 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009643/0.1572, allocations: 428.6 kB / 275.3 MB, free: 6.363 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001691/0.1574, allocations: 41.12 kB / 275.4 MB, free: 6.363 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003175/0.1606, allocations: 1.235 MB / 276.6 MB, free: 6.363 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001694/0.1608, allocations: 137.5 kB / 276.7 MB, free: 6.363 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006317/0.1614, allocations: 343.4 kB / 277.1 MB, free: 6.363 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002735/0.1641, allocations: 1.673 MB / 278.7 MB, free: 6.234 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.758e-05/0.1641, allocations: 0 / 278.7 MB, free: 6.234 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1641, allocations: 0 / 278.7 MB, free: 6.234 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.145e-05/0.1642, allocations: 1.5 kB / 278.7 MB, free: 6.234 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.003436/0.1676, allocations: 2.335 MB / 281.1 MB, free: 5.004 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.1677, allocations: 9.75 kB / 281.1 MB, free: 5.004 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003429/0.168, allocations: 142.5 kB / 281.2 MB, free: 5.004 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001304/0.1693, allocations: 1.117 MB / 282.3 MB, free: 4.477 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.599e-05/0.1693, allocations: 17.05 kB / 282.4 MB, free: 4.473 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.936e-05/0.1694, allocations: 36.78 kB / 282.4 MB, free: 4.469 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004007/0.1698, allocations: 281.9 kB / 282.7 MB, free: 4.41 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.1698, allocations: 0 / 282.7 MB, free: 4.41 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.567e-05/0.1698, allocations: 10.27 kB / 282.7 MB, free: 4.41 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.1698, allocations: 14.44 kB / 282.7 MB, free: 4.41 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002105/0.17, allocations: 117.8 kB / 282.8 MB, free: 4.41 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001226/0.1713, allocations: 0.7991 MB / 283.6 MB, free: 4.199 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001969/0.1715, allocations: 193.5 kB / 283.8 MB, free: 4.133 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001881/0.1717, allocations: 187.5 kB / 284 MB, free: 4.125 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01181/0.1835, allocations: 11.54 MB / 295.5 MB, free: 1.359 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002246/0.1837, allocations: 152.1 kB / 295.7 MB, free: 1.266 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 3.387e-06/0.1837, allocations: 5.172 kB / 295.7 MB, free: 1.262 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005468/0.1842, allocations: 344.8 kB / 296 MB, free: 1.008 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.504e-05/0.1843, allocations: 59.91 kB / 296.1 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007172/0.185, allocations: 1.316 MB / 297.4 MB, free: 124 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.654e-05/0.185, allocations: 33.69 kB / 297.4 MB, free: 92 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000378/0.1854, allocations: 438.1 kB / 297.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.324e-05/0.1854, allocations: 100.1 kB / 297.9 MB, free: 15.79 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.912e-05/0.1855, allocations: 104.5 kB / 298 MB, free: 15.73 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.097e-05/0.1856, allocations: 332.1 kB / 298.4 MB, free: 15.42 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.589e-05/0.1857, allocations: 46.06 kB / 298.4 MB, free: 15.38 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001587/0.1859, allocations: 244.7 kB / 298.6 MB, free: 15.08 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002811/0.1861, allocations: 353.1 kB / 299 MB, free: 14.73 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/0.1861, allocations: 4 kB / 299 MB, free: 14.72 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0004386/0.1866, allocations: 408.2 kB / 299.4 MB, free: 14.45 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.1866, allocations: 8 kB / 299.4 MB, free: 14.45 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.398e-05/0.1866, allocations: 9.641 kB / 299.4 MB, free: 14.44 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001678/0.1868, allocations: 85.36 kB / 299.5 MB, free: 14.38 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002184/0.187, allocations: 115.9 kB / 299.6 MB, free: 14.29 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003412/0.1874, allocations: 0.5667 MB / 300.2 MB, free: 13.73 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004258/0.1878, allocations: 62.34 kB / 300.2 MB, free: 13.68 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.177e-05/0.1878, allocations: 27.72 kB / 300.3 MB, free: 13.66 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.0001831/0.188, allocations: 141.4 kB / 300.4 MB, free: 13.53 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.1881, allocations: 130.8 kB / 300.5 MB, free: 13.45 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006259/0.1887, allocations: 453.2 kB / 301 MB, free: 13.16 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.1888, allocations: 7.703 kB / 301 MB, free: 13.16 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-06/0.1888, allocations: 0 / 301 MB, free: 13.16 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.1888, allocations: 4 kB / 301 MB, free: 13.15 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009689/0.1897, allocations: 0.8829 MB / 301.9 MB, free: 12.59 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.774e-05/0.1898, allocations: 7.812 kB / 301.9 MB, free: 12.58 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000111/0.1899, allocations: 39.25 kB / 301.9 MB, free: 12.55 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002084/0.1901, allocations: 198 kB / 302.1 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001197/0.1902, allocations: 64.86 kB / 302.2 MB, free: 12.33 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.777e-05/0.1902, allocations: 14.25 kB / 302.2 MB, free: 12.32 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005503/0.1908, allocations: 0.5581 MB / 302.7 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.1908, allocations: 0 / 302.7 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003424/0.1911, allocations: 394.6 kB / 303.1 MB, free: 11.43 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.802e-05/0.1912, allocations: 10.66 kB / 303.1 MB, free: 11.43 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001945/0.1914, allocations: 20.27 kB / 303.2 MB, free: 11.42 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.797e-05/0.1915, allocations: 30.03 kB / 303.2 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.361e-05/0.1915, allocations: 15.25 kB / 303.2 MB, free: 11.4 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004185/0.1919, allocations: 0.6807 MB / 303.9 MB, free: 10.95 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1919, allocations: 0 / 303.9 MB, free: 10.95 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000677/0.1926, allocations: 330.8 kB / 304.2 MB, free: 10.64 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.0007179/0.1933, allocations: 0.6559 MB / 304.9 MB, free: 10.17 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003831/0.1937, allocations: 278.9 kB / 305.1 MB, free: 9.949 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.157e-05/0.1937, allocations: 24 kB / 305.2 MB, free: 9.926 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001718/0.1939, allocations: 146.4 kB / 305.3 MB, free: 9.797 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008014/0.1947, allocations: 443.1 kB / 305.7 MB, free: 9.453 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004062/0.1988, allocations: 2.008 MB / 307.7 MB, free: 7.473 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001313/0.1989, allocations: 218.4 kB / 308 MB, free: 7.238 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003889/0.1993, allocations: 199.9 kB / 308.2 MB, free: 7.039 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003428/0.1996, allocations: 316.2 kB / 308.5 MB, free: 6.742 MB / 282.7 MB Notification: Performance of SimCode: time 1.804e-06/0.1996, allocations: 4 kB / 308.5 MB, free: 6.738 MB / 282.7 MB Notification: Performance of Templates: time 0.02841/0.228, allocations: 23.08 MB / 331.5 MB, free: 228 kB / 298.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 -ignoreHideResult -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","",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.01096710562706]