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.001102/0.001102, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001823/0.002925, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.001133/0.001133, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001469/0.002602, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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.9735/0.9735, allocations: 177.4 MB / 189.9 MB, free: 4.84 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09483/1.068, allocations: 53.86 MB / 243.7 MB, free: 14.91 MB / 250.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.412e-06/1.412e-06, allocations: 0 / 245 MB, free: 13.67 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.485e-05/2.626e-05, allocations: 2.312 kB / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.01296/0.01299, allocations: 5.691 MB / 250.7 MB, free: 7.945 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006655/0.01964, allocations: 2.791 MB / 253.5 MB, free: 5.141 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005503/0.02019, allocations: 27.81 kB / 253.5 MB, free: 5.113 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001387/0.02158, allocations: 0.7814 MB / 254.3 MB, free: 4.328 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000939/0.02252, allocations: 0.5785 MB / 254.9 MB, free: 3.746 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008933/0.02341, allocations: 0.5107 MB / 255.4 MB, free: 3.234 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001628/0.02504, allocations: 1.629 MB / 257 MB, free: 1.602 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005231/0.02556, allocations: 391 kB / 257.4 MB, free: 1.191 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001038/0.0266, allocations: 1.081 MB / 258.5 MB, free: 96 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005623/0.02716, allocations: 0.6234 MB / 259.1 MB, free: 15.47 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000133/0.02729, allocations: 136 kB / 259.2 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002819/0.02758, allocations: 207.8 kB / 259.4 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003264/0.0279, allocations: 0.5804 MB / 260 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003862/0.02829, allocations: 458.8 kB / 260.5 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001044/0.02933, allocations: 1.455 MB / 261.9 MB, free: 12.64 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.307e-05/0.02934, allocations: 0 / 261.9 MB, free: 12.64 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.02935, allocations: 0 / 261.9 MB, free: 12.64 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.902e-05/0.02939, allocations: 0 / 261.9 MB, free: 12.64 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.0028/0.03219, allocations: 2.707 MB / 264.6 MB, free: 9.891 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.036e-05/0.03223, allocations: 12.62 kB / 264.6 MB, free: 9.879 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002499/0.03247, allocations: 204.7 kB / 264.8 MB, free: 9.68 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001071/0.03355, allocations: 0.9182 MB / 265.8 MB, free: 8.703 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.914e-05/0.03364, allocations: 147.7 kB / 265.9 MB, free: 8.539 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.629e-05/0.03373, allocations: 96.38 kB / 266 MB, free: 8.445 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008891/0.03462, allocations: 1.343 MB / 267.3 MB, free: 6.879 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.675e-05/0.03464, allocations: 192 / 267.3 MB, free: 6.879 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.733e-05/0.03468, allocations: 44.12 kB / 267.4 MB, free: 6.836 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.343e-05/0.0347, allocations: 27.94 kB / 267.4 MB, free: 6.809 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002993/0.035, allocations: 212.7 kB / 267.6 MB, free: 6.598 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002834/0.03783, allocations: 3.095 MB / 270.7 MB, free: 3.359 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003765/0.03821, allocations: 347.2 kB / 271 MB, free: 3.008 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001919/0.0384, allocations: 150.7 kB / 271.2 MB, free: 2.859 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.848e-05/0.03844, allocations: 12 kB / 271.2 MB, free: 2.848 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.698e-05/0.03846, allocations: 46.55 kB / 271.3 MB, free: 2.793 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 1.412e-06/0.03847, allocations: 0 / 271.3 MB, free: 2.793 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.0003933/0.03886, allocations: 306 kB / 271.6 MB, free: 2.488 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.123e-05/0.03889, allocations: 63.41 kB / 271.6 MB, free: 2.414 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001236/0.04013, allocations: 1.723 MB / 273.3 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.086e-05/0.04016, allocations: 37.7 kB / 273.4 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002602/0.04042, allocations: 0.5664 MB / 273.9 MB, free: 24 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.244e-05/0.0405, allocations: 162.6 kB / 274.1 MB, free: 15.86 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001108/0.04061, allocations: 118.2 kB / 274.2 MB, free: 15.74 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.423e-05/0.04068, allocations: 333.9 kB / 274.5 MB, free: 15.41 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.405e-05/0.04078, allocations: 60.11 kB / 274.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002934/0.04107, allocations: 0.673 MB / 275.3 MB, free: 14.47 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002662/0.04134, allocations: 355.8 kB / 275.6 MB, free: 14.04 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.71e-06/0.04134, allocations: 7.938 kB / 275.6 MB, free: 14.04 MB / 282.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0004137/0.04176, allocations: 409.1 kB / 276 MB, free: 13.63 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.04178, allocations: 8 kB / 276 MB, free: 13.62 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.04178, allocations: 4 kB / 276 MB, free: 13.62 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.0418, allocations: 12 kB / 276.1 MB, free: 13.61 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004115/0.04221, allocations: 180.1 kB / 276.2 MB, free: 13.43 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/0.04222, allocations: 19.92 kB / 276.2 MB, free: 13.41 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003387/0.04256, allocations: 115.5 kB / 276.4 MB, free: 13.3 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.149e-05/0.04259, allocations: 24 kB / 276.4 MB, free: 13.27 MB / 282.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.0001944/0.04278, allocations: 171.5 kB / 276.5 MB, free: 13.1 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001133/0.04289, allocations: 115.9 kB / 276.7 MB, free: 12.98 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003739/0.04327, allocations: 348.8 kB / 277 MB, free: 12.64 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.04327, allocations: 4 kB / 277 MB, free: 12.63 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.04327, allocations: 0 / 277 MB, free: 12.63 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.04328, allocations: 7.984 kB / 277 MB, free: 12.62 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001179/0.04446, allocations: 1.16 MB / 278.2 MB, free: 11.42 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.04446, allocations: 12.02 kB / 278.2 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003042/0.04477, allocations: 124.5 kB / 278.3 MB, free: 11.29 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002779/0.04504, allocations: 226.6 kB / 278.5 MB, free: 11.07 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.04505, allocations: 4 kB / 278.5 MB, free: 11.06 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.326e-05/0.04507, allocations: 8 kB / 278.5 MB, free: 11.05 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.04508, allocations: 4 kB / 278.5 MB, free: 11.05 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.04508, allocations: 4 kB / 278.5 MB, free: 11.05 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004557/0.04553, allocations: 0.5206 MB / 279.1 MB, free: 10.5 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.534e-05/0.04563, allocations: 19.94 kB / 279.1 MB, free: 10.48 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003267/0.04595, allocations: 95.91 kB / 279.2 MB, free: 10.38 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001208/0.04608, allocations: 87.84 kB / 279.3 MB, free: 10.3 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.21e-05/0.0461, allocations: 16 kB / 279.3 MB, free: 10.28 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0007008/0.0468, allocations: 0.9046 MB / 280.2 MB, free: 9.348 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0468, allocations: 0 / 280.2 MB, free: 9.348 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004934/0.04729, allocations: 323.3 kB / 280.5 MB, free: 9.031 MB / 282.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.001354/0.04865, allocations: 0.6307 MB / 281.1 MB, free: 8.656 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000305/0.04895, allocations: 245.2 kB / 281.4 MB, free: 8.418 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.616e-05/0.04898, allocations: 27.98 kB / 281.4 MB, free: 8.391 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001313/0.04911, allocations: 123.4 kB / 281.5 MB, free: 8.266 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006878/0.0498, allocations: 399.1 kB / 281.9 MB, free: 7.883 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007021/0.05682, allocations: 2.792 MB / 284.7 MB, free: 5.027 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002578/0.05708, allocations: 371 kB / 285.1 MB, free: 4.641 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004361/0.05751, allocations: 182.5 kB / 285.2 MB, free: 4.457 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00058/0.05809, allocations: 373.1 kB / 285.6 MB, free: 4.094 MB / 282.7 MB Notification: Performance of SimCode: time 1.282e-06/0.05809, allocations: 0 / 285.6 MB, free: 4.094 MB / 282.7 MB Notification: Performance of Templates: time 0.1587/0.2168, allocations: 22.88 MB / 308.5 MB, free: 23.92 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 -ignoreHideResult -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.3228961247950792]