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.001835/0.001835, allocations: 99.53 kB / 20.97 MB, free: 3.457 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.001883/0.001883, allocations: 164.8 kB / 24.27 MB, free: 156 kB / 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 1.566/1.566, allocations: 177 MB / 204.4 MB, free: 5.633 MB / 186.7 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.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=36000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.1..v|battery2.capacitor.2..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.1..v|battery2.capacitor.2..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 2.424e-06/2.424e-06, allocations: 0 / 272.2 MB, free: 1.844 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.133e-05/3.375e-05, allocations: 6.312 kB / 272.2 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.01014/0.01018, allocations: 5.67 MB / 277.9 MB, free: 12.13 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006583/0.01676, allocations: 2.691 MB / 280.5 MB, free: 9.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001191/0.01795, allocations: 31.81 kB / 280.6 MB, free: 9.398 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00234/0.02029, allocations: 0.7541 MB / 281.3 MB, free: 8.641 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002116/0.02241, allocations: 0.5785 MB / 281.9 MB, free: 8.059 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001398/0.02381, allocations: 0.5107 MB / 282.4 MB, free: 7.547 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002527/0.02633, allocations: 1.648 MB / 284.1 MB, free: 5.895 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000881/0.02721, allocations: 379.1 kB / 284.4 MB, free: 5.496 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001491/0.0287, allocations: 0.8965 MB / 285.3 MB, free: 4.598 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001091/0.0298, allocations: 0.6585 MB / 286 MB, free: 3.938 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002347/0.03003, allocations: 132 kB / 286.1 MB, free: 3.809 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005023/0.03053, allocations: 207.8 kB / 286.3 MB, free: 3.605 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007804/0.03131, allocations: 0.6621 MB / 287 MB, free: 2.941 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008498/0.03216, allocations: 0.5765 MB / 287.6 MB, free: 2.363 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1533/0.1855, allocations: 2.464 MB / 290 MB, free: 18.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.008e-05/0.1855, allocations: 2.5 kB / 290 MB, free: 18.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.1855, allocations: 0 / 290 MB, free: 18.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001353/0.1856, allocations: 0 / 290 MB, free: 18.25 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: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.005849/0.1915, allocations: 2.793 MB / 292.8 MB, free: 16.97 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.671e-05/0.1915, allocations: 13.33 kB / 292.8 MB, free: 16.97 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005612/0.1921, allocations: 307.1 kB / 293.1 MB, free: 16.84 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002609/0.1947, allocations: 1.221 MB / 294.4 MB, free: 16.39 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001344/0.1948, allocations: 149 kB / 294.5 MB, free: 16.29 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001645/0.195, allocations: 98.84 kB / 294.6 MB, free: 16.29 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002142/0.1972, allocations: 1.738 MB / 296.3 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.626e-05/0.1972, allocations: 4.531 kB / 296.3 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.323e-05/0.1973, allocations: 40.23 kB / 296.4 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.812e-05/0.1973, allocations: 25.92 kB / 296.4 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00136/0.1987, allocations: 0.6096 MB / 297 MB, free: 15.2 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00862/0.2073, allocations: 4.907 MB / 301.9 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001093/0.2084, allocations: 489.6 kB / 302.4 MB, free: 12.56 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007055/0.2091, allocations: 320.3 kB / 302.7 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.862e-05/0.2091, allocations: 11 kB / 302.7 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.949e-05/0.2092, allocations: 42.89 kB / 302.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 2.164e-06/0.2092, allocations: 0 / 302.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.001878/0.2111, allocations: 0.7094 MB / 303.5 MB, free: 12.13 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.414e-05/0.2112, allocations: 423.7 kB / 303.9 MB, free: 11.62 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00331/0.2145, allocations: 2.377 MB / 306.3 MB, free: 10.64 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.242e-05/0.2146, allocations: 36.55 kB / 306.3 MB, free: 10.61 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006883/0.2153, allocations: 1.133 MB / 307.4 MB, free: 9.75 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001329/0.2154, allocations: 173.2 kB / 307.6 MB, free: 9.621 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002077/0.2156, allocations: 150.1 kB / 307.8 MB, free: 9.539 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.2157, allocations: 0.518 MB / 308.3 MB, free: 9.039 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003886/0.2161, allocations: 197.2 kB / 308.5 MB, free: 8.977 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005984/0.2167, allocations: 0.9447 MB / 309.4 MB, free: 7.977 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008219/0.2175, allocations: 0.6643 MB / 310.1 MB, free: 7.52 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.2175, allocations: 3.938 kB / 310.1 MB, free: 7.516 MB / 266.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001545/0.2191, allocations: 0.8105 MB / 310.9 MB, free: 7.199 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/0.2191, allocations: 6.656 kB / 310.9 MB, free: 7.199 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.2191, allocations: 6.375 kB / 310.9 MB, free: 7.199 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.665e-05/0.2191, allocations: 8.594 kB / 310.9 MB, free: 7.199 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005729/0.2197, allocations: 150.8 kB / 311.1 MB, free: 7.195 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.156e-05/0.2197, allocations: 8.469 kB / 311.1 MB, free: 7.195 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001089/0.2208, allocations: 125.5 kB / 311.2 MB, free: 7.145 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.632e-05/0.2209, allocations: 27.53 kB / 311.2 MB, free: 7.141 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.0006757/0.2215, allocations: 331.9 kB / 311.5 MB, free: 6.895 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002946/0.2218, allocations: 199.8 kB / 311.7 MB, free: 6.789 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00116/0.223, allocations: 0.5777 MB / 312.3 MB, free: 6.547 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.223, allocations: 3.938 kB / 312.3 MB, free: 6.547 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.223, allocations: 0 / 312.3 MB, free: 6.547 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.223, allocations: 3.234 kB / 312.3 MB, free: 6.547 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003603/0.2266, allocations: 2.198 MB / 314.5 MB, free: 4.883 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.2266, allocations: 0 / 314.5 MB, free: 4.883 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000591/0.2272, allocations: 100.4 kB / 314.6 MB, free: 4.805 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.814e-06/0.2272, allocations: 4 kB / 314.6 MB, free: 4.801 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.682e-05/0.2273, allocations: 12.5 kB / 314.6 MB, free: 4.789 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.041e-06/0.2273, allocations: 7.938 kB / 314.6 MB, free: 4.781 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.2273, allocations: 3.188 kB / 314.6 MB, free: 4.781 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001259/0.2285, allocations: 0.9736 MB / 315.6 MB, free: 3.805 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007549/0.2293, allocations: 314.6 kB / 315.9 MB, free: 3.496 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001675/0.2294, allocations: 15.98 kB / 315.9 MB, free: 3.48 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007347/0.2302, allocations: 106.8 kB / 316 MB, free: 3.379 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003004/0.2305, allocations: 195.7 kB / 316.2 MB, free: 3.188 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.594e-05/0.2305, allocations: 15.98 kB / 316.2 MB, free: 3.172 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.00165/0.2322, allocations: 1.391 MB / 317.6 MB, free: 1.762 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2322, allocations: 8 kB / 317.6 MB, free: 1.754 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008843/0.2331, allocations: 315.3 kB / 318 MB, free: 1.445 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.003259/0.2363, allocations: 0.5028 MB / 318.5 MB, free: 1.211 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001008/0.2373, allocations: 0.509 MB / 319 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.2373, allocations: 4.875 kB / 319 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003793/0.2377, allocations: 234.5 kB / 319.2 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001397/0.2391, allocations: 301.3 kB / 319.5 MB, free: 212 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005732/0.2448, allocations: 2.978 MB / 322.5 MB, free: 13.18 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001067/0.2459, allocations: 0.8061 MB / 323.3 MB, free: 12.33 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0009117/0.2468, allocations: 202.4 kB / 323.5 MB, free: 12.12 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003555/0.2472, allocations: 100.5 kB / 323.6 MB, free: 12.02 MB / 282.7 MB Notification: Performance of SimCode: time 2.224e-06/0.2472, allocations: 0 / 323.6 MB, free: 12.02 MB / 282.7 MB Notification: Performance of Templates: time 0.04224/0.2894, allocations: 21.34 MB / 344.9 MB, free: 6.922 MB / 298.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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.611577804083936]