Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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.001155/0.001155, allocations: 82.59 kB / 21.42 MB, free: 3.074 MB / 18.57 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.00101/0.00101, allocations: 171 kB / 24.82 MB, free: 9.312 MB / 18.57 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.9511/0.9511, allocations: 177 MB / 205.1 MB, free: 5.469 MB / 186.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.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=36000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.[0-9,]+..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=36000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.[0-9,]+..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 273.3 MB, free: 1.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.081e-05/2.239e-05, allocations: 2.312 kB / 273.3 MB, free: 1.219 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.01727/0.0173, allocations: 5.603 MB / 278.9 MB, free: 11.58 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01323/0.03053, allocations: 2.667 MB / 281.6 MB, free: 8.902 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001016/0.03154, allocations: 27.81 kB / 281.6 MB, free: 8.875 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004034/0.03558, allocations: 0.758 MB / 282.4 MB, free: 8.113 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005774/0.04135, allocations: 0.5785 MB / 283 MB, free: 7.531 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001406/0.04275, allocations: 0.5068 MB / 283.5 MB, free: 7.023 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005497/0.04825, allocations: 1.648 MB / 285.1 MB, free: 5.371 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007765/0.04903, allocations: 379.1 kB / 285.5 MB, free: 4.977 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004621/0.05365, allocations: 0.8965 MB / 286.4 MB, free: 4.078 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001148/0.0548, allocations: 0.643 MB / 287 MB, free: 3.434 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000349/0.05515, allocations: 132 kB / 287.2 MB, free: 3.305 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004603/0.05561, allocations: 211.8 kB / 287.4 MB, free: 3.098 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005382/0.05614, allocations: 0.6621 MB / 288 MB, free: 2.434 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006335/0.05678, allocations: 0.5726 MB / 288.6 MB, free: 1.859 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001294/0.05807, allocations: 1.526 MB / 290.1 MB, free: 336 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.05808, allocations: 0 / 290.1 MB, free: 336 kB / 266.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.05808, allocations: 0 / 290.1 MB, free: 336 kB / 266.7 MB Notification: Performance of Transformations before backend: time 4.375e-05/0.05812, allocations: 0 / 290.1 MB, free: 336 kB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.1171/0.1752, allocations: 2.644 MB / 292.8 MB, free: 24.08 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.1752, allocations: 10.97 kB / 292.8 MB, free: 24.08 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00048/0.1757, allocations: 304.3 kB / 293.1 MB, free: 23.96 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001501/0.1772, allocations: 1.095 MB / 294.2 MB, free: 23.48 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.57e-05/0.1773, allocations: 146.9 kB / 294.3 MB, free: 23.38 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/0.1774, allocations: 100.9 kB / 294.4 MB, free: 23.38 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00103/0.1784, allocations: 1.38 MB / 295.8 MB, free: 22.3 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.832e-05/0.1785, allocations: 7.969 kB / 295.8 MB, free: 22.3 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.506e-05/0.1785, allocations: 40.91 kB / 295.8 MB, free: 22.3 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/0.1785, allocations: 24.06 kB / 295.9 MB, free: 22.3 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004332/0.179, allocations: 244.2 kB / 296.1 MB, free: 22.29 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004487/0.1835, allocations: 4.189 MB / 300.3 MB, free: 20.19 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005031/0.184, allocations: 318.5 kB / 300.6 MB, free: 20.09 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002797/0.1842, allocations: 173.7 kB / 300.8 MB, free: 20.07 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.192e-05/0.1843, allocations: 11.2 kB / 300.8 MB, free: 20.07 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.956e-05/0.1843, allocations: 47.75 kB / 300.8 MB, free: 20.02 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 2.275e-06/0.1843, allocations: 0 / 300.8 MB, free: 20.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.000849/0.1852, allocations: 440.8 kB / 301.3 MB, free: 19.85 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.164e-05/0.1852, allocations: 423.6 kB / 301.7 MB, free: 19.35 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002132/0.1874, allocations: 1.955 MB / 303.6 MB, free: 18.81 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.585e-05/0.1874, allocations: 38.55 kB / 303.7 MB, free: 18.77 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005357/0.188, allocations: 1.082 MB / 304.7 MB, free: 18.02 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.865e-05/0.188, allocations: 162.7 kB / 304.9 MB, free: 17.9 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001321/0.1882, allocations: 135.9 kB / 305 MB, free: 17.83 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.083e-05/0.1882, allocations: 0.5049 MB / 305.5 MB, free: 17.35 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001029/0.1883, allocations: 61.36 kB / 305.6 MB, free: 17.35 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002551/0.1886, allocations: 0.7934 MB / 306.4 MB, free: 16.43 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003308/0.1889, allocations: 427.6 kB / 306.8 MB, free: 16.08 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/0.1889, allocations: 5.875 kB / 306.8 MB, free: 16.08 MB / 266.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0007934/0.1897, allocations: 0.5521 MB / 307.4 MB, free: 15.88 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.721e-05/0.1898, allocations: 7.219 kB / 307.4 MB, free: 15.88 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.1898, allocations: 5.312 kB / 307.4 MB, free: 15.88 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.618e-05/0.1898, allocations: 11 kB / 307.4 MB, free: 15.88 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003257/0.1901, allocations: 148.1 kB / 307.5 MB, free: 15.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.199e-05/0.1901, allocations: 12.97 kB / 307.5 MB, free: 15.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000462/0.1906, allocations: 120.6 kB / 307.7 MB, free: 15.83 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.697e-05/0.1906, allocations: 21.31 kB / 307.7 MB, free: 15.82 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (pulseSeries.on2,pulseSeries.on1,energy2.local_reset,battery2.limIntegrator.local_reset,energy1.local_reset,battery1.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002347/0.1909, allocations: 208.5 kB / 307.9 MB, free: 15.64 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001697/0.191, allocations: 194.5 kB / 308.1 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000436/0.1915, allocations: 401.4 kB / 308.5 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.1915, allocations: 8 kB / 308.5 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/0.1915, allocations: 2 kB / 308.5 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.1915, allocations: 3.719 kB / 308.5 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001494/0.193, allocations: 1.353 MB / 309.8 MB, free: 14.74 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.193, allocations: 2.75 kB / 309.8 MB, free: 14.74 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002225/0.1932, allocations: 98.84 kB / 309.9 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/0.1932, allocations: 2.312 kB / 309.9 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.24e-05/0.1932, allocations: 11.73 kB / 310 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.1932, allocations: 2.875 kB / 310 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1932, allocations: 3.938 kB / 310 MB, free: 14.72 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005026/0.1937, allocations: 0.6564 MB / 310.6 MB, free: 14.33 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003024/0.194, allocations: 281.7 kB / 310.9 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.641e-05/0.1941, allocations: 10.47 kB / 310.9 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003487/0.1945, allocations: 95.69 kB / 311 MB, free: 14.08 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001176/0.1946, allocations: 93.73 kB / 311.1 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.349e-05/0.1946, allocations: 18.39 kB / 311.1 MB, free: 14 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0006717/0.1953, allocations: 1.052 MB / 312.2 MB, free: 12.94 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1953, allocations: 0 / 312.2 MB, free: 12.94 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005812/0.1959, allocations: 319.3 kB / 312.5 MB, free: 12.62 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (battery1.limIntegrator.y,energy1.y,battery2.limIntegrator.y,battery2.capacitor[1].v,battery2.capacitor[2].v,energy2.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009131/0.1968, allocations: 450.8 kB / 312.9 MB, free: 12.4 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003567/0.1972, allocations: 288.6 kB / 313.2 MB, free: 12.14 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.359e-06/0.1972, allocations: 4 kB / 313.2 MB, free: 12.13 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001263/0.1973, allocations: 119.2 kB / 313.3 MB, free: 12.02 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007072/0.198, allocations: 312.9 kB / 313.6 MB, free: 11.72 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002829/0.2008, allocations: 2.826 MB / 316.4 MB, free: 8.84 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002057/0.201, allocations: 379.1 kB / 316.8 MB, free: 8.445 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003783/0.2014, allocations: 174.5 kB / 317 MB, free: 8.27 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005181/0.2019, allocations: 426 kB / 317.4 MB, free: 7.852 MB / 266.7 MB Notification: Performance of SimCode: time 1.062e-06/0.2019, allocations: 0 / 317.4 MB, free: 7.852 MB / 266.7 MB Notification: Performance of Templates: time 0.02696/0.2289, allocations: 22.72 MB / 340.1 MB, free: 1.371 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.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.5934968739748]