Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") translateModel(Modelica.Electrical.Batteries.Examples.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009661/0.0009662, allocations: 95.88 kB / 16.31 MB, free: 6.121 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009672/0.0009672, allocations: 183.5 kB / 17.2 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 223.2 MB / 241.1 MB, free: 14.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002414/0.0002414, allocations: 8 kB / 300.7 MB, free: 6.238 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1089, allocations: 50.41 MB / 351.1 MB, free: 3.805 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004171/0.1131, allocations: 3.246 MB / 354.4 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002789/0.116, allocations: 1.771 MB / 356.2 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003296/0.1163, allocations: 8 kB / 356.2 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001414/0.1178, allocations: 0.7909 MB / 357 MB, free: 13.96 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/BatteryStacks/CellRCStack.mo:14:26-14:33:writable] Warning: 'each' used when modifying non-array element v. Notification: Performance of NFTyping.typeBindings: time 0.0003867/0.1182, allocations: 187.4 kB / 357.1 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005679/0.1187, allocations: 210.7 kB / 357.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008874/0.1196, allocations: 0.7299 MB / 358.1 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004246/0.1201, allocations: 268.3 kB / 358.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002941/0.1204, allocations: 291.1 kB / 358.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004795/0.1209, allocations: 330.6 kB / 358.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.877e-05/0.1209, allocations: 28 kB / 359 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002172/0.1212, allocations: 75.92 kB / 359 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002938/0.1215, allocations: 338.9 kB / 359.4 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001955/0.1217, allocations: 241 kB / 359.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001151/0.1228, allocations: 1.223 MB / 360.8 MB, free: 10.06 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.1228, allocations: 0 / 360.8 MB, free: 10.06 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.975e-06/0.1228, allocations: 0 / 360.8 MB, free: 10.06 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.405e-05/0.1229, allocations: 0 / 360.8 MB, free: 10.06 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.002481/0.1253, allocations: 1.53 MB / 362.4 MB, free: 8.477 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.1254, allocations: 12.03 kB / 362.4 MB, free: 8.465 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001945/0.1256, allocations: 158 kB / 362.5 MB, free: 8.309 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001781/0.1274, allocations: 1.18 MB / 363.7 MB, free: 7.078 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003262/0.1277, allocations: 144.3 kB / 363.9 MB, free: 6.926 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.083e-05/0.1278, allocations: 51.95 kB / 363.9 MB, free: 6.875 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001229/0.1291, allocations: 0.6751 MB / 364.6 MB, free: 6.156 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/0.1291, allocations: 0 / 364.6 MB, free: 6.156 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.352e-05/0.1292, allocations: 24 kB / 364.6 MB, free: 6.133 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.598e-05/0.1292, allocations: 15.94 kB / 364.6 MB, free: 6.117 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008816/0.1301, allocations: 451.6 kB / 365.1 MB, free: 5.672 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003788/0.1339, allocations: 2.528 MB / 367.6 MB, free: 3.043 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/0.135, allocations: 462.5 kB / 368 MB, free: 2.582 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.756e-05/0.135, allocations: 8 kB / 368 MB, free: 2.574 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.948e-05/0.1351, allocations: 42.5 kB / 368.1 MB, free: 2.523 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.733e-06/0.1351, allocations: 0 / 368.1 MB, free: 2.523 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.002171/0.1373, allocations: 0.8964 MB / 369 MB, free: 1.598 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001217/0.1374, allocations: 261 kB / 369.2 MB, free: 1.281 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1833/0.3207, allocations: 1.524 MB / 370.8 MB, free: 23.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001243/0.3209, allocations: 34.42 kB / 370.8 MB, free: 23.51 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007132/0.3216, allocations: 0.6459 MB / 371.4 MB, free: 23.42 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001504/0.3218, allocations: 108.9 kB / 371.5 MB, free: 23.37 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.535e-05/0.3218, allocations: 7.719 kB / 371.6 MB, free: 23.37 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.677e-05/0.3219, allocations: 322.5 kB / 371.9 MB, free: 23.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005406/0.3225, allocations: 181.8 kB / 372 MB, free: 23.06 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005797/0.3231, allocations: 323.2 kB / 372.4 MB, free: 22.92 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005398/0.3236, allocations: 215.8 kB / 372.6 MB, free: 22.92 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.3236, allocations: 1.531 kB / 372.6 MB, free: 22.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001439/0.3251, allocations: 0.676 MB / 373.2 MB, free: 22.8 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.3251, allocations: 8.781 kB / 373.3 MB, free: 22.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.3251, allocations: 4.875 kB / 373.3 MB, free: 22.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003611/0.3255, allocations: 94 kB / 373.4 MB, free: 22.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003952/0.3259, allocations: 92.81 kB / 373.4 MB, free: 22.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001925/0.3278, allocations: 1.863 MB / 375.3 MB, free: 21.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004657/0.3283, allocations: 77.34 kB / 375.4 MB, free: 21.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.507e-05/0.3284, allocations: 11.16 kB / 375.4 MB, free: 21.16 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0006816/0.329, allocations: 485.4 kB / 375.9 MB, free: 20.94 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002121/0.3293, allocations: 139.7 kB / 376 MB, free: 20.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002124/0.3295, allocations: 160.3 kB / 376.2 MB, free: 20.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.3295, allocations: 6.25 kB / 376.2 MB, free: 20.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.3295, allocations: 2.125 kB / 376.2 MB, free: 20.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.3295, allocations: 1.828 kB / 376.2 MB, free: 20.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001038/0.3306, allocations: 0.8578 MB / 377 MB, free: 20.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.3306, allocations: 1.25 kB / 377 MB, free: 20.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003565/0.3309, allocations: 69.53 kB / 377.1 MB, free: 20.37 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002594/0.3312, allocations: 93.31 kB / 377.2 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.043e-05/0.3312, allocations: 17.38 kB / 377.2 MB, free: 20.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001741/0.333, allocations: 1.852 MB / 379.1 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.333, allocations: 0 / 379.1 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001803/0.3348, allocations: 0.9096 MB / 380 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003652/0.3352, allocations: 243.2 kB / 380.2 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.833e-05/0.3353, allocations: 10.48 kB / 380.2 MB, free: 18.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004756/0.3358, allocations: 64.16 kB / 380.3 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001266/0.3359, allocations: 32.55 kB / 380.3 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.598e-05/0.3359, allocations: 11.84 kB / 380.3 MB, free: 18.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0016/0.3376, allocations: 1.081 MB / 381.4 MB, free: 17.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3376, allocations: 0 / 381.4 MB, free: 17.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007522/0.3383, allocations: 181.8 kB / 381.6 MB, free: 17.67 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.000987/0.3393, allocations: 469.8 kB / 382 MB, free: 17.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001263/0.3406, allocations: 0.56 MB / 382.6 MB, free: 17.22 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.3406, allocations: 1.062 kB / 382.6 MB, free: 17.22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006287/0.3412, allocations: 361.2 kB / 383 MB, free: 17.03 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000702/0.342, allocations: 188 kB / 383.1 MB, free: 16.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004022/0.346, allocations: 2.83 MB / 386 MB, free: 15.51 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009582/0.347, allocations: 1.292 MB / 387.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005913/0.3476, allocations: 186.5 kB / 387.4 MB, free: 14.67 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001709/0.3477, allocations: 72.55 kB / 387.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of SimCode: time 1.954e-06/0.3478, allocations: 0 / 387.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of Templates: time 0.01707/0.3648, allocations: 9.047 MB / 396.6 MB, free: 10.71 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches