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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=72000,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=72000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000835/0.0008345, allocations: 94.47 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009989/0.0009989, allocations: 200.9 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.7 MB / 246.8 MB, free: 9.773 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002778/0.0002778, allocations: 8 kB / 307.7 MB, free: 0.6094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09767/0.09796, allocations: 51.52 MB / 359.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.006797/0.1048, allocations: 5.39 MB / 364.6 MB, free: 7.672 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004697/0.1095, allocations: 2.661 MB / 367.3 MB, free: 5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001002/0.1106, allocations: 19.94 kB / 367.3 MB, free: 4.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001847/0.1124, allocations: 0.7237 MB / 368.1 MB, free: 4.254 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001378/0.1138, allocations: 497.6 kB / 368.5 MB, free: 3.766 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001144/0.115, allocations: 466.9 kB / 369 MB, free: 3.312 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001968/0.117, allocations: 1.531 MB / 370.5 MB, free: 1.777 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008276/0.1178, allocations: 0.5084 MB / 371 MB, free: 1.246 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007755/0.1186, allocations: 0.494 MB / 371.5 MB, free: 0.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008989/0.1195, allocations: 0.6534 MB / 372.2 MB, free: 96 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002012/0.1197, allocations: 60 kB / 372.2 MB, free: 36 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1779/0.2976, allocations: 122.4 kB / 372.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008941/0.2986, allocations: 0.5539 MB / 372.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001069/0.2997, allocations: 0.8476 MB / 373.8 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003174/0.3028, allocations: 2.327 MB / 376.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.3029, allocations: 0.8438 kB / 376.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3029, allocations: 0 / 376.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.591e-05/0.303, allocations: 0 / 376.1 MB, free: 10.16 MB / 302.1 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.005862/0.3088, allocations: 2.327 MB / 378.4 MB, free: 9.004 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.3089, allocations: 9.656 kB / 378.4 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003867/0.3093, allocations: 223.5 kB / 378.6 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002428/0.3117, allocations: 1.528 MB / 380.2 MB, free: 8.371 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005228/0.3122, allocations: 188 kB / 380.4 MB, free: 8.336 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/0.3124, allocations: 83.81 kB / 380.4 MB, free: 8.336 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002099/0.3145, allocations: 1.134 MB / 381.6 MB, free: 8.078 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.138e-05/0.3145, allocations: 7.812 kB / 381.6 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001004/0.3146, allocations: 39.16 kB / 381.6 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.04e-05/0.3147, allocations: 24.06 kB / 381.6 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001467/0.3161, allocations: 0.7469 MB / 382.4 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00746/0.3236, allocations: 4.725 MB / 387.1 MB, free: 6.266 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001614/0.3252, allocations: 0.9972 MB / 388.1 MB, free: 5.574 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008868/0.3262, allocations: 415.7 kB / 388.5 MB, free: 5.457 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.659e-05/0.3262, allocations: 11.53 kB / 388.5 MB, free: 5.453 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.464e-05/0.3263, allocations: 44.69 kB / 388.6 MB, free: 5.406 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 3.015e-06/0.3263, allocations: 0 / 388.6 MB, free: 5.406 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002553/0.3288, allocations: 0.9077 MB / 389.5 MB, free: 5.027 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.194e-05/0.3289, allocations: 422.1 kB / 389.9 MB, free: 4.523 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004142/0.3331, allocations: 2.763 MB / 392.7 MB, free: 3.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.541e-05/0.3332, allocations: 37.64 kB / 392.7 MB, free: 3.191 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006141/0.3338, allocations: 0.8901 MB / 393.6 MB, free: 2.422 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001153/0.3339, allocations: 156.5 kB / 393.7 MB, free: 2.289 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.63e-05/0.334, allocations: 55.62 kB / 393.8 MB, free: 2.246 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.572e-05/0.3341, allocations: 331.8 kB / 394.1 MB, free: 1.922 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006457/0.3347, allocations: 285.8 kB / 394.4 MB, free: 1.789 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007608/0.3355, allocations: 0.5689 MB / 395 MB, free: 1.305 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001183/0.3367, allocations: 0.6662 MB / 395.6 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.3367, allocations: 1.438 kB / 395.6 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001951/0.3387, allocations: 0.9184 MB / 396.5 MB, free: 444 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.3387, allocations: 8.5 kB / 396.6 MB, free: 444 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.3387, allocations: 5.797 kB / 396.6 MB, free: 444 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.342e-05/0.3388, allocations: 9.656 kB / 396.6 MB, free: 444 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000618/0.3394, allocations: 174.1 kB / 396.7 MB, free: 404 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.3394, allocations: 14.53 kB / 396.8 MB, free: 404 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00133/0.3407, allocations: 211.1 kB / 397 MB, free: 304 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.398e-05/0.3408, allocations: 33.19 kB / 397 MB, free: 296 kB / 302.1 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.00107/0.3419, allocations: 0.5607 MB / 397.6 MB, free: 15.97 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003028/0.3422, allocations: 179.6 kB / 397.7 MB, free: 15.88 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001644/0.3439, allocations: 0.7574 MB / 398.5 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.768e-06/0.3439, allocations: 9.953 kB / 398.5 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.3439, allocations: 3.938 kB / 398.5 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.3439, allocations: 7.922 kB / 398.5 MB, free: 15.47 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003614/0.3475, allocations: 2.2 MB / 400.7 MB, free: 14.03 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.3475, allocations: 1.938 kB / 400.7 MB, free: 14.03 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005736/0.3481, allocations: 119.6 kB / 400.8 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.755e-06/0.3481, allocations: 2.594 kB / 400.8 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.288e-05/0.3482, allocations: 16.81 kB / 400.8 MB, free: 13.99 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-06/0.3482, allocations: 6.25 kB / 400.8 MB, free: 13.99 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.3482, allocations: 5.797 kB / 400.9 MB, free: 13.99 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002213/0.3504, allocations: 1.138 MB / 402 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006775/0.3511, allocations: 420.8 kB / 402.4 MB, free: 12.93 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001896/0.3513, allocations: 16 kB / 402.4 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001229/0.3526, allocations: 191.8 kB / 402.6 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003228/0.3529, allocations: 163.6 kB / 402.8 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.525e-05/0.3529, allocations: 16.88 kB / 402.8 MB, free: 12.55 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003284/0.3562, allocations: 1.964 MB / 404.7 MB, free: 10.57 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3562, allocations: 0 / 404.7 MB, free: 10.57 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001196/0.3575, allocations: 315.2 kB / 405.1 MB, free: 10.26 MB / 318.1 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.001166/0.3586, allocations: 485.7 kB / 405.5 MB, free: 9.961 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0015/0.3601, allocations: 0.6497 MB / 406.2 MB, free: 9.324 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/0.3602, allocations: 4.5 kB / 406.2 MB, free: 9.32 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008001/0.361, allocations: 379.4 kB / 406.6 MB, free: 8.961 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001819/0.3628, allocations: 301.1 kB / 406.8 MB, free: 8.664 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006702/0.3695, allocations: 4.199 MB / 411 MB, free: 4.426 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001497/0.371, allocations: 1.445 MB / 412.5 MB, free: 2.953 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001127/0.3722, allocations: 291.1 kB / 412.8 MB, free: 2.664 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005009/0.3727, allocations: 103.4 kB / 412.9 MB, free: 2.562 MB / 318.1 MB Notification: Performance of SimCode: time 1.113e-06/0.3727, allocations: 0 / 412.9 MB, free: 2.562 MB / 318.1 MB Notification: Performance of Templates: time 0.03525/0.408, allocations: 19.18 MB / 432.1 MB, free: 15.58 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches