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.0009638/0.0009638, allocations: 88.86 kB / 21.5 MB, free: 2.988 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.0009604/0.0009604, allocations: 159.9 kB / 24.91 MB, free: 8.719 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.9571/0.9571, allocations: 177 MB / 205.2 MB, free: 5.035 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.683e-06/1.683e-06, allocations: 0 / 273.4 MB, free: 1.07 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.224e-05/1.393e-05, allocations: 5.266 kB / 273.4 MB, free: 1.066 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.004817/0.004831, allocations: 5.602 MB / 279 MB, free: 11.43 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003363/0.008195, allocations: 2.772 MB / 281.7 MB, free: 8.645 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003669/0.008562, allocations: 31.81 kB / 281.8 MB, free: 8.613 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00112/0.009681, allocations: 0.7579 MB / 282.5 MB, free: 7.852 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007543/0.01044, allocations: 0.5708 MB / 283.1 MB, free: 7.277 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007146/0.01115, allocations: 0.5185 MB / 283.6 MB, free: 6.758 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001193/0.01234, allocations: 1.648 MB / 285.3 MB, free: 5.109 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004279/0.01277, allocations: 391 kB / 285.7 MB, free: 4.699 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007483/0.01352, allocations: 0.8888 MB / 286.5 MB, free: 3.809 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005512/0.01407, allocations: 0.6195 MB / 287.2 MB, free: 3.188 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001281/0.0142, allocations: 140 kB / 287.3 MB, free: 3.051 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002461/0.01445, allocations: 215.8 kB / 287.5 MB, free: 2.84 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003636/0.01481, allocations: 0.6543 MB / 288.2 MB, free: 2.184 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003962/0.01521, allocations: 0.5765 MB / 288.7 MB, free: 1.605 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00107/0.01627, allocations: 1.518 MB / 290.3 MB, free: 84 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.934e-06/0.01628, allocations: 0 / 290.3 MB, free: 84 kB / 266.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.01628, allocations: 0 / 290.3 MB, free: 84 kB / 266.7 MB Notification: Performance of Transformations before backend: time 2.717e-05/0.0163, allocations: 4 kB / 290.3 MB, free: 80 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.105/0.1213, allocations: 2.357 MB / 292.6 MB, free: 24 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.1213, allocations: 11.08 kB / 292.6 MB, free: 24 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003519/0.1217, allocations: 208.5 kB / 292.8 MB, free: 24 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001078/0.1227, allocations: 0.9214 MB / 293.8 MB, free: 23.52 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.376e-05/0.1228, allocations: 144.9 kB / 293.9 MB, free: 23.43 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001025/0.1229, allocations: 105.9 kB / 294 MB, free: 23.42 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008588/0.1238, allocations: 1.34 MB / 295.3 MB, free: 22.43 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/0.1238, allocations: 1.281 kB / 295.3 MB, free: 22.43 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.807e-05/0.1238, allocations: 37.81 kB / 295.4 MB, free: 22.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.546e-05/0.1239, allocations: 25.06 kB / 295.4 MB, free: 22.43 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003483/0.1242, allocations: 230.1 kB / 295.6 MB, free: 22.41 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002883/0.1271, allocations: 3.086 MB / 298.7 MB, free: 20.98 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004056/0.1275, allocations: 327.9 kB / 299 MB, free: 20.91 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002246/0.1277, allocations: 162 kB / 299.2 MB, free: 20.9 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.679e-05/0.1278, allocations: 9.031 kB / 299.2 MB, free: 20.9 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.175e-05/0.1278, allocations: 40.28 kB / 299.2 MB, free: 20.86 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 1.694e-06/0.1278, allocations: 1.75 kB / 299.2 MB, free: 20.86 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.000476/0.1283, allocations: 304.9 kB / 299.5 MB, free: 20.82 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.257e-05/0.1283, allocations: 423.9 kB / 300 MB, free: 20.32 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001468/0.1298, allocations: 1.736 MB / 301.7 MB, free: 20.06 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.423e-05/0.1298, allocations: 36.83 kB / 301.7 MB, free: 20.03 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002746/0.1301, allocations: 0.5545 MB / 302.3 MB, free: 19.77 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.036e-05/0.1302, allocations: 162.5 kB / 302.4 MB, free: 19.66 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001212/0.1303, allocations: 129.4 kB / 302.6 MB, free: 19.64 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.899e-05/0.1303, allocations: 332.2 kB / 302.9 MB, free: 19.33 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.863e-05/0.1304, allocations: 59.95 kB / 302.9 MB, free: 19.33 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002288/0.1306, allocations: 0.6745 MB / 303.6 MB, free: 18.57 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002823/0.1309, allocations: 353.3 kB / 304 MB, free: 18.36 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.1309, allocations: 5.75 kB / 304 MB, free: 18.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0004549/0.1314, allocations: 417.6 kB / 304.4 MB, free: 18.3 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.1314, allocations: 6.969 kB / 304.4 MB, free: 18.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.1314, allocations: 4.719 kB / 304.4 MB, free: 18.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.1314, allocations: 17.19 kB / 304.4 MB, free: 18.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002816/0.1317, allocations: 147 kB / 304.6 MB, free: 18.3 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.1317, allocations: 17.42 kB / 304.6 MB, free: 18.3 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003504/0.1321, allocations: 112.5 kB / 304.7 MB, free: 18.26 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.187e-05/0.1321, allocations: 22.53 kB / 304.7 MB, free: 18.26 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.0001807/0.1323, allocations: 159.4 kB / 304.9 MB, free: 18.12 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001381/0.1324, allocations: 116.9 kB / 305 MB, free: 18.11 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003705/0.1328, allocations: 354.5 kB / 305.3 MB, free: 17.98 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.1328, allocations: 4.844 kB / 305.3 MB, free: 17.98 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.313e-06/0.1328, allocations: 0 / 305.3 MB, free: 17.98 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.1328, allocations: 6.719 kB / 305.3 MB, free: 17.97 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001157/0.134, allocations: 1.161 MB / 306.5 MB, free: 17.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.134, allocations: 1.156 kB / 306.5 MB, free: 17.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002119/0.1342, allocations: 101.8 kB / 306.6 MB, free: 17.54 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.1342, allocations: 8 kB / 306.6 MB, free: 17.54 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.137e-05/0.1342, allocations: 14.62 kB / 306.6 MB, free: 17.53 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.1342, allocations: 3.875 kB / 306.6 MB, free: 17.53 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.1342, allocations: 3.938 kB / 306.6 MB, free: 17.53 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003955/0.1346, allocations: 0.5134 MB / 307.1 MB, free: 17.28 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002564/0.1349, allocations: 216.9 kB / 307.3 MB, free: 17.15 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000102/0.135, allocations: 16.06 kB / 307.4 MB, free: 17.14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003252/0.1353, allocations: 97.14 kB / 307.5 MB, free: 17.13 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001148/0.1354, allocations: 89.89 kB / 307.5 MB, free: 17.1 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-05/0.1354, allocations: 12.94 kB / 307.6 MB, free: 17.1 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005763/0.136, allocations: 0.9146 MB / 308.5 MB, free: 16.78 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.136, allocations: 0 / 308.5 MB, free: 16.78 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004071/0.1364, allocations: 319.3 kB / 308.8 MB, free: 16.46 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.001079/0.1375, allocations: 0.5832 MB / 309.4 MB, free: 16.18 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002619/0.1377, allocations: 256 kB / 309.6 MB, free: 15.96 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.415e-05/0.1378, allocations: 21.5 kB / 309.6 MB, free: 15.94 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001133/0.1379, allocations: 123.2 kB / 309.8 MB, free: 15.82 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006072/0.1385, allocations: 304.7 kB / 310.1 MB, free: 15.53 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002279/0.1408, allocations: 2.749 MB / 312.8 MB, free: 12.73 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000207/0.141, allocations: 367.1 kB / 313.2 MB, free: 12.35 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002902/0.1412, allocations: 174.5 kB / 313.3 MB, free: 12.17 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005077/0.1418, allocations: 373.1 kB / 313.7 MB, free: 11.8 MB / 266.7 MB Notification: Performance of SimCode: time 7.92e-07/0.1418, allocations: 0 / 313.7 MB, free: 11.8 MB / 266.7 MB Notification: Performance of Templates: time 0.02221/0.164, allocations: 21.78 MB / 335.5 MB, free: 6.285 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.4119440093636513]