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.00101/0.00101, allocations: 91.5 kB / 21.19 MB, free: 3.375 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.000916/0.000916, allocations: 156.5 kB / 24.55 MB, free: 20 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 0.9717/0.9717, allocations: 177 MB / 204.8 MB, free: 5.562 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.393e-06/1.393e-06, allocations: 0 / 272.9 MB, free: 1.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.7e-05/2.839e-05, allocations: 2.312 kB / 272.9 MB, free: 1.441 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.005849/0.005877, allocations: 5.728 MB / 278.6 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003735/0.009612, allocations: 2.699 MB / 281.3 MB, free: 8.969 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005709/0.01018, allocations: 31.81 kB / 281.4 MB, free: 8.938 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001405/0.01159, allocations: 0.7541 MB / 282.1 MB, free: 8.18 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001094/0.01268, allocations: 0.5746 MB / 282.7 MB, free: 7.602 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009275/0.01361, allocations: 0.5146 MB / 283.2 MB, free: 7.086 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001518/0.01513, allocations: 1.648 MB / 284.8 MB, free: 5.434 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000513/0.01564, allocations: 375.1 kB / 285.2 MB, free: 5.043 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009874/0.01663, allocations: 0.8965 MB / 286.1 MB, free: 4.145 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007941/0.01742, allocations: 0.6624 MB / 286.8 MB, free: 3.48 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001904/0.01761, allocations: 132 kB / 286.9 MB, free: 3.352 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003925/0.018, allocations: 215.8 kB / 287.1 MB, free: 3.141 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004255/0.01843, allocations: 0.6582 MB / 287.8 MB, free: 2.48 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006315/0.01906, allocations: 0.5726 MB / 288.3 MB, free: 1.906 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001507/0.02057, allocations: 1.518 MB / 289.9 MB, free: 392 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.02057, allocations: 0 / 289.9 MB, free: 392 kB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.02057, allocations: 0 / 289.9 MB, free: 392 kB / 266.7 MB Notification: Performance of Transformations before backend: time 4.829e-05/0.02062, allocations: 4 kB / 289.9 MB, free: 388 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.1212/0.1418, allocations: 2.669 MB / 292.5 MB, free: 24.16 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/0.1419, allocations: 9.219 kB / 292.5 MB, free: 24.16 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005531/0.1424, allocations: 306.1 kB / 292.8 MB, free: 24.04 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001875/0.1443, allocations: 1.186 MB / 294 MB, free: 23.56 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001227/0.1444, allocations: 147.9 kB / 294.2 MB, free: 23.46 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001217/0.1445, allocations: 95.55 kB / 294.3 MB, free: 23.46 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001309/0.1458, allocations: 1.439 MB / 295.7 MB, free: 22.39 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.894e-05/0.1459, allocations: 192 / 295.7 MB, free: 22.39 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.068e-05/0.1459, allocations: 41.81 kB / 295.7 MB, free: 22.39 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.177e-05/0.1459, allocations: 25.41 kB / 295.8 MB, free: 22.38 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006365/0.1466, allocations: 309.5 kB / 296.1 MB, free: 22.37 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00436/0.1509, allocations: 4.199 MB / 300.3 MB, free: 19.88 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005877/0.1515, allocations: 340.3 kB / 300.6 MB, free: 19.77 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003376/0.1519, allocations: 197.1 kB / 300.8 MB, free: 19.72 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.036e-05/0.1519, allocations: 12.53 kB / 300.8 MB, free: 19.72 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.343e-05/0.152, allocations: 47.73 kB / 300.9 MB, free: 19.67 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 3.847e-06/0.152, allocations: 1.078 kB / 300.9 MB, free: 19.67 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.0008706/0.1528, allocations: 480.2 kB / 301.3 MB, free: 19.49 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.447e-05/0.1529, allocations: 420.2 kB / 301.7 MB, free: 18.99 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002253/0.1551, allocations: 2.031 MB / 303.8 MB, free: 18.18 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.699e-05/0.1552, allocations: 37.83 kB / 303.8 MB, free: 18.14 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005312/0.1557, allocations: 1.059 MB / 304.9 MB, free: 17.32 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.234e-05/0.1558, allocations: 165.4 kB / 305 MB, free: 17.2 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001394/0.156, allocations: 131.6 kB / 305.2 MB, free: 17.12 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.232e-05/0.156, allocations: 0.499 MB / 305.7 MB, free: 16.63 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001602/0.1562, allocations: 83.33 kB / 305.7 MB, free: 16.62 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003087/0.1565, allocations: 0.8008 MB / 306.5 MB, free: 15.68 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003816/0.1569, allocations: 458.9 kB / 307 MB, free: 15.31 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.091e-06/0.1569, allocations: 10.39 kB / 307 MB, free: 15.3 MB / 266.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0008144/0.1577, allocations: 0.5966 MB / 307.6 MB, free: 15.08 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/0.1577, allocations: 8.031 kB / 307.6 MB, free: 15.08 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.1577, allocations: 4.688 kB / 307.6 MB, free: 15.08 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.1578, allocations: 8.438 kB / 307.6 MB, free: 15.08 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003455/0.1581, allocations: 154.5 kB / 307.8 MB, free: 15.08 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.84e-05/0.1581, allocations: 12.09 kB / 307.8 MB, free: 15.08 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004665/0.1586, allocations: 122.5 kB / 307.9 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.344e-05/0.1586, allocations: 29.3 kB / 307.9 MB, free: 15.02 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.0002276/0.1589, allocations: 204.8 kB / 308.1 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000145/0.159, allocations: 194.6 kB / 308.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004696/0.1595, allocations: 430 kB / 308.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.1595, allocations: 9.031 kB / 308.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.1595, allocations: 0 / 308.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.1595, allocations: 3.844 kB / 308.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001754/0.1612, allocations: 1.751 MB / 310.5 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.1612, allocations: 3.625 kB / 310.5 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002366/0.1615, allocations: 95.03 kB / 310.6 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.1615, allocations: 4 kB / 310.6 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.184e-05/0.1615, allocations: 12.09 kB / 310.6 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.1615, allocations: 11.94 kB / 310.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.1615, allocations: 0 / 310.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000564/0.1621, allocations: 0.696 MB / 311.3 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003001/0.1624, allocations: 314.5 kB / 311.6 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001011/0.1625, allocations: 12 kB / 311.6 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003536/0.1628, allocations: 99.84 kB / 311.7 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001992/0.163, allocations: 203.2 kB / 311.9 MB, free: 12.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.183e-05/0.1631, allocations: 12 kB / 311.9 MB, free: 12.24 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0008906/0.164, allocations: 1.185 MB / 313.1 MB, free: 11.03 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.164, allocations: 0 / 313.1 MB, free: 11.03 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000501/0.1645, allocations: 323.3 kB / 313.4 MB, free: 10.71 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.0009535/0.1654, allocations: 460.7 kB / 313.9 MB, free: 10.49 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004102/0.1658, allocations: 311.8 kB / 314.2 MB, free: 10.21 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.1658, allocations: 4 kB / 314.2 MB, free: 10.2 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001551/0.166, allocations: 135.1 kB / 314.3 MB, free: 10.07 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007529/0.1667, allocations: 300.5 kB / 314.6 MB, free: 9.781 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002824/0.1696, allocations: 2.843 MB / 317.5 MB, free: 6.891 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002028/0.1698, allocations: 379.1 kB / 317.8 MB, free: 6.496 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003886/0.1701, allocations: 202.4 kB / 318 MB, free: 6.293 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002061/0.1704, allocations: 100.5 kB / 318.1 MB, free: 6.195 MB / 266.7 MB Notification: Performance of SimCode: time 1.272e-06/0.1704, allocations: 0 / 318.1 MB, free: 6.195 MB / 266.7 MB Notification: Performance of Templates: time 0.03382/0.2042, allocations: 22.51 MB / 340.6 MB, free: 15.91 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","",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.5057734232395887]