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.001798/0.001798, allocations: 79.75 kB / 21.25 MB, free: 404 kB / 14.72 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.002147/0.002147, allocations: 160 kB / 24.5 MB, free: 3.594 MB / 14.72 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.408/1.408, allocations: 177.1 MB / 204.7 MB, free: 8.891 MB / 190.1 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=1999,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=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001929/0.001929, allocations: 61.3 kB / 325.5 MB, free: 220 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0936/0.09553, allocations: 53.39 MB / 378.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009163/0.1047, allocations: 6.93 MB / 385.8 MB, free: 8.543 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02317/0.1279, allocations: 16.7 MB / 402.5 MB, free: 7.781 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001276/0.1291, allocations: 90.94 kB / 402.6 MB, free: 7.691 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002406/0.1315, allocations: 0.7711 MB / 403.4 MB, free: 6.914 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005608/0.1371, allocations: 1.808 MB / 405.2 MB, free: 5.094 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00414/0.1413, allocations: 1.324 MB / 406.5 MB, free: 3.762 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00554/0.1468, allocations: 3.318 MB / 409.9 MB, free: 444 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003355/0.1472, allocations: 124.8 kB / 410 MB, free: 292 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009035/0.1481, allocations: 0.5911 MB / 410.6 MB, free: 15.69 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007582/0.1488, allocations: 0.5394 MB / 411.1 MB, free: 15.15 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001148/0.1489, allocations: 40 kB / 411.1 MB, free: 15.11 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00308/0.152, allocations: 1.171 MB / 412.3 MB, free: 13.94 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000189/0.1522, allocations: 170.8 kB / 412.5 MB, free: 13.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005861/0.1528, allocations: 0.5006 MB / 413 MB, free: 13.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003081/0.1559, allocations: 2.252 MB / 415.2 MB, free: 11 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1559, allocations: 0 / 415.2 MB, free: 11 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1559, allocations: 4 kB / 415.2 MB, free: 11 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.217e-05/0.1559, allocations: 0 / 415.2 MB, free: 11 MB / 382.1 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.003161/0.1591, allocations: 1.991 MB / 417.2 MB, free: 8.965 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.1591, allocations: 15.98 kB / 417.2 MB, free: 8.949 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002396/0.1593, allocations: 202.7 kB / 417.4 MB, free: 8.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002013/0.1614, allocations: 1.253 MB / 418.7 MB, free: 7.418 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.597e-05/0.1614, allocations: 24.64 kB / 418.7 MB, free: 7.395 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.66e-05/0.1615, allocations: 28 kB / 418.7 MB, free: 7.367 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009188/0.1624, allocations: 425.9 kB / 419.2 MB, free: 6.945 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.1624, allocations: 3.938 kB / 419.2 MB, free: 6.941 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.457e-05/0.1625, allocations: 15.98 kB / 419.2 MB, free: 6.926 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.039e-05/0.1625, allocations: 12 kB / 419.2 MB, free: 6.914 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001128/0.1636, allocations: 470.4 kB / 419.7 MB, free: 6.453 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002667/0.1663, allocations: 1.429 MB / 421.1 MB, free: 4.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009534/0.1672, allocations: 351.3 kB / 421.4 MB, free: 4.629 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007823/0.168, allocations: 370 kB / 421.8 MB, free: 4.266 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01272/0.1807, allocations: 6.988 MB / 428.8 MB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006524/0.1814, allocations: 251.2 kB / 429 MB, free: 12.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 2.385e-06/0.1814, allocations: 4 kB / 429 MB, free: 12.81 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.002269/0.1837, allocations: 0.7626 MB / 429.8 MB, free: 12.04 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.814e-05/0.1837, allocations: 63.33 kB / 429.8 MB, free: 11.96 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001804/0.1855, allocations: 1.475 MB / 431.3 MB, free: 10.45 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.918e-05/0.1856, allocations: 33.7 kB / 431.4 MB, free: 10.41 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006894/0.1862, allocations: 0.7232 MB / 432.1 MB, free: 9.688 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.679e-05/0.1863, allocations: 103.1 kB / 432.2 MB, free: 9.586 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001883/0.1865, allocations: 126 kB / 432.3 MB, free: 9.457 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.1867, allocations: 326 kB / 432.6 MB, free: 9.133 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004725/0.1872, allocations: 160.9 kB / 432.8 MB, free: 8.973 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006547/0.1878, allocations: 362.8 kB / 433.1 MB, free: 8.527 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001107/0.1889, allocations: 0.5332 MB / 433.7 MB, free: 7.902 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.1889, allocations: 0 / 433.7 MB, free: 7.902 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001582/0.1905, allocations: 0.7556 MB / 434.4 MB, free: 7.137 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.1905, allocations: 8 kB / 434.4 MB, free: 7.129 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.105e-05/0.1906, allocations: 48 kB / 434.5 MB, free: 7.082 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003219/0.1909, allocations: 133.6 kB / 434.6 MB, free: 6.949 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004225/0.1913, allocations: 107.8 kB / 434.7 MB, free: 6.844 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006935/0.192, allocations: 0.6811 MB / 435.4 MB, free: 6.137 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005475/0.1926, allocations: 67.59 kB / 435.5 MB, free: 6.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.845e-05/0.1926, allocations: 36 kB / 435.5 MB, free: 6.035 MB / 398.1 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.0004333/0.1931, allocations: 283.7 kB / 435.8 MB, free: 5.75 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002013/0.1933, allocations: 198.7 kB / 436 MB, free: 5.555 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001819/0.1951, allocations: 0.7346 MB / 436.7 MB, free: 4.805 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.174e-06/0.1951, allocations: 4 kB / 436.7 MB, free: 4.801 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.1951, allocations: 0 / 436.7 MB, free: 4.801 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.1951, allocations: 0 / 436.7 MB, free: 4.801 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002247/0.1974, allocations: 1.2 MB / 437.9 MB, free: 3.551 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.89e-05/0.1974, allocations: 36 kB / 437.9 MB, free: 3.516 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002621/0.1977, allocations: 43.89 kB / 438 MB, free: 3.473 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002589/0.1979, allocations: 128.9 kB / 438.1 MB, free: 3.344 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.879e-05/0.198, allocations: 20 kB / 438.1 MB, free: 3.324 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006324/0.1986, allocations: 0.6655 MB / 438.8 MB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.1986, allocations: 8.016 kB / 438.8 MB, free: 2.625 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001394/0.2, allocations: 0.7147 MB / 439.5 MB, free: 1.883 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004322/0.2004, allocations: 216.6 kB / 439.7 MB, free: 1.672 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001324/0.2006, allocations: 8 kB / 439.7 MB, free: 1.664 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004268/0.201, allocations: 23.97 kB / 439.8 MB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.2011, allocations: 47.94 kB / 439.8 MB, free: 1.594 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.553e-05/0.2012, allocations: 20 kB / 439.8 MB, free: 1.574 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001259/0.2024, allocations: 0.9571 MB / 440.8 MB, free: 0.5977 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2024, allocations: 0 / 440.8 MB, free: 0.5977 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000873/0.2033, allocations: 335.5 kB / 441.1 MB, free: 276 kB / 398.1 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.0008332/0.2041, allocations: 0.5692 MB / 441.7 MB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001321/0.2055, allocations: 0.4886 MB / 442.2 MB, free: 15.2 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.2055, allocations: 0 / 442.2 MB, free: 15.2 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006819/0.2061, allocations: 283.6 kB / 442.4 MB, free: 14.91 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001311/0.2075, allocations: 317.7 kB / 442.8 MB, free: 14.59 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003403/0.2109, allocations: 2.256 MB / 445 MB, free: 12.29 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005718/0.2114, allocations: 0.5589 MB / 445.6 MB, free: 11.7 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000508/0.2119, allocations: 199.9 kB / 445.8 MB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001522/0.2121, allocations: 96.5 kB / 445.9 MB, free: 11.4 MB / 414.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2121, allocations: 0 / 445.9 MB, free: 11.4 MB / 414.1 MB Notification: Performance of Templates: time 0.03398/0.2461, allocations: 19.5 MB / 465.4 MB, free: 8.117 MB / 430.1 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=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/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.172352327033877]