Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007761/0.0007761, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00105/0.001826, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007173/0.0007173, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008697/0.001587, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.011/1.011, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08806/1.099, allocations: 53.66 MB / 243.3 MB, free: 15.57 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.102e-06/1.102e-06, allocations: 0 / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.017e-06/1.012e-05, allocations: 2.312 kB / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.00477/0.004781, allocations: 5.692 MB / 250.2 MB, free: 8.598 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004373/0.009154, allocations: 2.78 MB / 253 MB, free: 5.805 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000598/0.009752, allocations: 31.81 kB / 253 MB, free: 5.773 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001512/0.01126, allocations: 0.7776 MB / 253.8 MB, free: 4.992 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008913/0.01216, allocations: 0.5785 MB / 254.4 MB, free: 4.41 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008234/0.01298, allocations: 0.5107 MB / 254.9 MB, free: 3.898 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001416/0.0144, allocations: 1.633 MB / 256.5 MB, free: 2.262 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006717/0.01507, allocations: 395 kB / 256.9 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001012/0.01608, allocations: 1.077 MB / 258 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005613/0.01664, allocations: 0.6157 MB / 258.6 MB, free: 144 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001313/0.01677, allocations: 135.9 kB / 258.7 MB, free: 8 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002933/0.01706, allocations: 215.8 kB / 258.9 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003269/0.01739, allocations: 0.5727 MB / 259.5 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003728/0.01776, allocations: 470.7 kB / 260 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001033/0.0188, allocations: 1.452 MB / 261.4 MB, free: 13.3 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.199e-05/0.01881, allocations: 0 / 261.4 MB, free: 13.3 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.01881, allocations: 0 / 261.4 MB, free: 13.3 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.371e-05/0.01884, allocations: 0 / 261.4 MB, free: 13.3 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.002768/0.02161, allocations: 2.7 MB / 264.1 MB, free: 10.56 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.02165, allocations: 11.98 kB / 264.1 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002157/0.02186, allocations: 208.7 kB / 264.3 MB, free: 10.35 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009333/0.02279, allocations: 0.9259 MB / 265.3 MB, free: 9.363 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.947e-05/0.02288, allocations: 143.7 kB / 265.4 MB, free: 9.203 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.265e-05/0.02297, allocations: 96.38 kB / 265.5 MB, free: 9.109 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008541/0.02382, allocations: 1.354 MB / 266.9 MB, free: 7.531 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.02384, allocations: 3.938 kB / 266.9 MB, free: 7.527 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.708e-05/0.02389, allocations: 40 kB / 266.9 MB, free: 7.488 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.335e-05/0.0239, allocations: 20 kB / 266.9 MB, free: 7.469 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002885/0.02419, allocations: 216.6 kB / 267.1 MB, free: 7.254 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002706/0.02689, allocations: 3.103 MB / 270.2 MB, free: 4.008 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003773/0.02727, allocations: 332.5 kB / 270.6 MB, free: 3.676 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002019/0.02747, allocations: 163.3 kB / 270.7 MB, free: 3.516 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.917e-05/0.02751, allocations: 8 kB / 270.7 MB, free: 3.508 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.142e-05/0.02754, allocations: 42.55 kB / 270.8 MB, free: 3.457 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 1.463e-06/0.02754, allocations: 0 / 270.8 MB, free: 3.457 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.0006642/0.02821, allocations: 307.1 kB / 271.1 MB, free: 3.152 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.79e-05/0.02824, allocations: 55.41 kB / 271.1 MB, free: 3.086 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001216/0.02945, allocations: 1.727 MB / 272.8 MB, free: 1.309 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.154e-05/0.02948, allocations: 37.7 kB / 272.9 MB, free: 1.266 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000273/0.02976, allocations: 0.5625 MB / 273.4 MB, free: 0.6953 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.509e-05/0.02983, allocations: 166.6 kB / 273.6 MB, free: 0.5312 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/0.02995, allocations: 122.2 kB / 273.7 MB, free: 416 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.594e-05/0.03002, allocations: 333.8 kB / 274.1 MB, free: 76 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.384e-05/0.03012, allocations: 60.11 kB / 274.1 MB, free: 12 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003056/0.03042, allocations: 0.677 MB / 274.8 MB, free: 15.13 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002702/0.03069, allocations: 351.8 kB / 275.1 MB, free: 14.71 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.0307, allocations: 4 kB / 275.1 MB, free: 14.7 MB / 282.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0004062/0.0311, allocations: 408.7 kB / 275.5 MB, free: 14.3 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.03112, allocations: 8.75 kB / 275.5 MB, free: 14.29 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.03113, allocations: 8 kB / 275.6 MB, free: 14.28 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.03114, allocations: 12 kB / 275.6 MB, free: 14.27 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004095/0.03155, allocations: 179.7 kB / 275.7 MB, free: 14.09 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.03156, allocations: 15.92 kB / 275.8 MB, free: 14.08 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003256/0.03188, allocations: 123.5 kB / 275.9 MB, free: 13.96 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.133e-05/0.03191, allocations: 24 kB / 275.9 MB, free: 13.93 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.0001849/0.0321, allocations: 163.2 kB / 276.1 MB, free: 13.77 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/0.03221, allocations: 115.9 kB / 276.2 MB, free: 13.65 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003734/0.03259, allocations: 351.7 kB / 276.5 MB, free: 13.3 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/0.03259, allocations: 7.984 kB / 276.5 MB, free: 13.29 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-06/0.03259, allocations: 4 kB / 276.5 MB, free: 13.29 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.0326, allocations: 3.984 kB / 276.5 MB, free: 13.29 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001155/0.03375, allocations: 1.168 MB / 277.7 MB, free: 12.07 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.03375, allocations: 0 / 277.7 MB, free: 12.07 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002905/0.03404, allocations: 131.8 kB / 277.8 MB, free: 11.95 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005352/0.03458, allocations: 226.6 kB / 278 MB, free: 11.72 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.03458, allocations: 0 / 278 MB, free: 11.72 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.38e-05/0.03461, allocations: 12 kB / 278.1 MB, free: 11.71 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.03461, allocations: 4 kB / 278.1 MB, free: 11.71 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.03461, allocations: 0 / 278.1 MB, free: 11.71 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004541/0.03507, allocations: 0.5203 MB / 278.6 MB, free: 11.16 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.657e-05/0.03516, allocations: 12 kB / 278.6 MB, free: 11.15 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003266/0.03549, allocations: 95.91 kB / 278.7 MB, free: 11.05 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.03562, allocations: 91.84 kB / 278.8 MB, free: 10.96 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.031e-05/0.03564, allocations: 16.06 kB / 278.8 MB, free: 10.95 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006767/0.03632, allocations: 0.9007 MB / 279.7 MB, free: 10.02 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.03632, allocations: 4 kB / 279.7 MB, free: 10.02 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004326/0.03675, allocations: 323.3 kB / 280 MB, free: 9.699 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.001455/0.0382, allocations: 0.6486 MB / 280.7 MB, free: 9.363 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000351/0.03855, allocations: 245.9 kB / 280.9 MB, free: 9.121 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.754e-05/0.03858, allocations: 27.98 kB / 280.9 MB, free: 9.094 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001391/0.03872, allocations: 124.5 kB / 281.1 MB, free: 8.969 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007339/0.03945, allocations: 406.7 kB / 281.4 MB, free: 8.582 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006754/0.04621, allocations: 2.78 MB / 284.2 MB, free: 5.738 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002578/0.04647, allocations: 367.1 kB / 284.6 MB, free: 5.355 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003136/0.04678, allocations: 178.5 kB / 284.8 MB, free: 5.176 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005549/0.04733, allocations: 381 kB / 285.1 MB, free: 4.805 MB / 282.7 MB Notification: Performance of SimCode: time 5.91e-07/0.04734, allocations: 4 kB / 285.1 MB, free: 4.801 MB / 282.7 MB Notification: Performance of Templates: time 0.1191/0.1664, allocations: 22.87 MB / 308 MB, free: 28.5 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.292120372876525]