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.0006992/0.0006992, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008915/0.001591, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.0006872/0.0006872, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008139/0.001501, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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 0.9195/0.9195, allocations: 177.4 MB / 189.9 MB, free: 4.836 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07331/0.9928, allocations: 53.86 MB / 243.7 MB, free: 14.91 MB / 250.7 MB " [Timeout remaining time 179] 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.182e-06/1.182e-06, allocations: 0 / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.816e-06/9.998e-06, allocations: 2.312 kB / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005146/0.005156, allocations: 7.651 MB / 252.7 MB, free: 5.965 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01468/0.01983, allocations: 18.58 MB / 271.2 MB, free: 3.312 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007087/0.02054, allocations: 98.88 kB / 271.3 MB, free: 3.215 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001339/0.02188, allocations: 0.7916 MB / 272.1 MB, free: 2.418 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003112/0.02499, allocations: 1.828 MB / 274 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.09879/0.1238, allocations: 1.296 MB / 275.2 MB, free: 3.309 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00384/0.1276, allocations: 3.37 MB / 278.6 MB, free: 2.902 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002803/0.1279, allocations: 146.6 kB / 278.8 MB, free: 2.812 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002081/0.13, allocations: 1.739 MB / 280.5 MB, free: 2.555 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006646/0.1306, allocations: 434.7 kB / 280.9 MB, free: 2.473 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001141/0.1308, allocations: 41.22 kB / 281 MB, free: 2.473 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002756/0.1335, allocations: 1.238 MB / 282.2 MB, free: 2.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000121/0.1336, allocations: 134.3 kB / 282.3 MB, free: 2.363 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004521/0.1341, allocations: 343.7 kB / 282.7 MB, free: 2.297 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002062/0.1361, allocations: 1.673 MB / 284.3 MB, free: 2.023 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.937e-05/0.1362, allocations: 7.031 kB / 284.3 MB, free: 2.02 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1362, allocations: 0 / 284.3 MB, free: 2.02 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.9e-05/0.1362, allocations: 0 / 284.3 MB, free: 2.02 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.002024/0.1382, allocations: 2.329 MB / 286.7 MB, free: 16.78 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.922e-05/0.1383, allocations: 8.094 kB / 286.7 MB, free: 16.78 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001695/0.1384, allocations: 138.9 kB / 286.8 MB, free: 16.78 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001027/0.1395, allocations: 1.127 MB / 288 MB, free: 16.24 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.829e-05/0.1395, allocations: 21.22 kB / 288 MB, free: 16.23 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.084e-05/0.1395, allocations: 28.94 kB / 288 MB, free: 16.23 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003706/0.1399, allocations: 283.4 kB / 288.3 MB, free: 16.17 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.1399, allocations: 0 / 288.3 MB, free: 16.17 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.34e-05/0.1399, allocations: 10.83 kB / 288.3 MB, free: 16.17 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/0.14, allocations: 13.45 kB / 288.3 MB, free: 16.17 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001815/0.1401, allocations: 114.4 kB / 288.4 MB, free: 16.17 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001186/0.1413, allocations: 0.8035 MB / 289.2 MB, free: 15.95 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000204/0.1415, allocations: 188.8 kB / 289.4 MB, free: 15.88 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001727/0.1417, allocations: 195.5 kB / 289.6 MB, free: 15.86 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.011/0.1527, allocations: 11.54 MB / 301.1 MB, free: 8.918 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001955/0.1529, allocations: 152.6 kB / 301.3 MB, free: 8.82 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 2.084e-06/0.1529, allocations: 0 / 301.3 MB, free: 8.82 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005148/0.1534, allocations: 342.6 kB / 301.6 MB, free: 8.562 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.586e-05/0.1535, allocations: 67.41 kB / 301.7 MB, free: 8.484 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006993/0.1542, allocations: 1.319 MB / 303 MB, free: 7.629 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.579e-05/0.1542, allocations: 33.64 kB / 303 MB, free: 7.594 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001879/0.1544, allocations: 413.2 kB / 303.4 MB, free: 7.32 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.161e-05/0.1544, allocations: 99.92 kB / 303.5 MB, free: 7.238 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.027e-05/0.1545, allocations: 112.3 kB / 303.6 MB, free: 7.145 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.94e-05/0.1546, allocations: 326.1 kB / 304 MB, free: 6.836 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.956e-05/0.1546, allocations: 47.84 kB / 304 MB, free: 6.797 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001427/0.1548, allocations: 253.1 kB / 304.3 MB, free: 6.48 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002341/0.155, allocations: 349.6 kB / 304.6 MB, free: 6.117 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.155, allocations: 0 / 304.6 MB, free: 6.117 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0003763/0.1554, allocations: 416.5 kB / 305 MB, free: 5.824 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.1554, allocations: 8 kB / 305 MB, free: 5.816 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.843e-05/0.1554, allocations: 8 kB / 305 MB, free: 5.809 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001502/0.1556, allocations: 77.22 kB / 305.1 MB, free: 5.734 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002084/0.1558, allocations: 115.5 kB / 305.2 MB, free: 5.629 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002881/0.1561, allocations: 0.571 MB / 305.8 MB, free: 5.043 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002279/0.1563, allocations: 63.61 kB / 305.8 MB, free: 4.98 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.842e-05/0.1563, allocations: 21.31 kB / 305.9 MB, free: 4.961 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.0001554/0.1565, allocations: 144.8 kB / 306 MB, free: 4.816 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.379e-05/0.1566, allocations: 131.8 kB / 306.1 MB, free: 4.688 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000571/0.1572, allocations: 447.6 kB / 306.6 MB, free: 4.258 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.1572, allocations: 4 kB / 306.6 MB, free: 4.254 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.502e-06/0.1572, allocations: 0 / 306.6 MB, free: 4.254 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.1572, allocations: 0 / 306.6 MB, free: 4.254 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007632/0.1579, allocations: 0.9018 MB / 307.5 MB, free: 3.512 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.818e-05/0.158, allocations: 4 kB / 307.5 MB, free: 3.508 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.788e-05/0.1581, allocations: 39.97 kB / 307.5 MB, free: 3.469 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001686/0.1582, allocations: 189.3 kB / 307.7 MB, free: 3.281 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000107/0.1583, allocations: 67.89 kB / 307.8 MB, free: 3.215 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.713e-05/0.1584, allocations: 12.25 kB / 307.8 MB, free: 3.207 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002434/0.1586, allocations: 0.5563 MB / 308.3 MB, free: 2.629 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1586, allocations: 0 / 308.3 MB, free: 2.629 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003017/0.1589, allocations: 388.4 kB / 308.7 MB, free: 2.234 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.625e-05/0.159, allocations: 8 kB / 308.7 MB, free: 2.227 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001671/0.1592, allocations: 23.36 kB / 308.7 MB, free: 2.207 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.002e-05/0.1592, allocations: 29.25 kB / 308.8 MB, free: 2.18 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.005e-05/0.1592, allocations: 11.94 kB / 308.8 MB, free: 2.168 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003947/0.1596, allocations: 0.6834 MB / 309.5 MB, free: 1.547 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1596, allocations: 4.031 kB / 309.5 MB, free: 1.543 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004774/0.1601, allocations: 331.6 kB / 309.8 MB, free: 1.219 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.0006222/0.1607, allocations: 0.6597 MB / 310.5 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00033/0.1611, allocations: 279.1 kB / 310.7 MB, free: 424 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.167e-05/0.1611, allocations: 24 kB / 310.8 MB, free: 400 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001496/0.1612, allocations: 149.5 kB / 310.9 MB, free: 240 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007076/0.1619, allocations: 437.4 kB / 311.3 MB, free: 15.81 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003689/0.1656, allocations: 2.026 MB / 313.4 MB, free: 13.76 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001144/0.1657, allocations: 211.2 kB / 313.6 MB, free: 13.53 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003197/0.1661, allocations: 195.9 kB / 313.8 MB, free: 13.33 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003139/0.1664, allocations: 319.3 kB / 314.1 MB, free: 13.02 MB / 298.7 MB Notification: Performance of SimCode: time 6.41e-07/0.1664, allocations: 0 / 314.1 MB, free: 13.02 MB / 298.7 MB Notification: Performance of Templates: time 0.02412/0.1905, allocations: 23.13 MB / 337.2 MB, free: 6.234 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 -ignoreHideResult -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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8785682944580913]