Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001276/0.001277, allocations: 92.08 kB / 17 MB, free: 6.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00121/0.00121, allocations: 193.9 kB / 17.91 MB, free: 5.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 227.7 MB / 246.4 MB, free: 9.801 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002376/0.0002376, allocations: 4 kB / 307.1 MB, free: 0.9688 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1136, allocations: 51.52 MB / 358.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008832/0.1225, allocations: 5.301 MB / 363.9 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004841/0.1274, allocations: 2.133 MB / 366.1 MB, free: 5.984 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007681/0.1282, allocations: 15.94 kB / 366.1 MB, free: 5.969 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001807/0.13, allocations: 0.5644 MB / 366.6 MB, free: 5.402 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.001282/0.1313, allocations: 382.2 kB / 367 MB, free: 5.027 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001139/0.1325, allocations: 266.9 kB / 367.3 MB, free: 4.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001871/0.1344, allocations: 1.122 MB / 368.4 MB, free: 3.645 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008711/0.1353, allocations: 351.4 kB / 368.7 MB, free: 3.281 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008468/0.1361, allocations: 386.5 kB / 369.1 MB, free: 2.902 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008873/0.137, allocations: 478 kB / 369.6 MB, free: 2.434 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001499/0.1372, allocations: 44 kB / 369.6 MB, free: 2.391 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003753/0.1376, allocations: 95.98 kB / 369.7 MB, free: 2.297 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006431/0.1382, allocations: 0.5843 MB / 370.3 MB, free: 1.711 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004279/0.1387, allocations: 340.6 kB / 370.6 MB, free: 1.371 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2232/0.3619, allocations: 2.13 MB / 372.8 MB, free: 11.56 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.3619, allocations: 2.812 kB / 372.8 MB, free: 11.56 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3619, allocations: 0 / 372.8 MB, free: 11.56 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.56e-05/0.362, allocations: 0 / 372.8 MB, free: 11.56 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.00345/0.3655, allocations: 2.081 MB / 374.9 MB, free: 10.42 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/0.3655, allocations: 9.312 kB / 374.9 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003693/0.3659, allocations: 210.5 kB / 375.1 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002929/0.3689, allocations: 1.576 MB / 376.6 MB, free: 9.875 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002707/0.3691, allocations: 138.8 kB / 376.8 MB, free: 9.809 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001283/0.3693, allocations: 61.11 kB / 376.8 MB, free: 9.809 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001604/0.3709, allocations: 0.8346 MB / 377.7 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.988e-05/0.3709, allocations: 4.156 kB / 377.7 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.885e-05/0.371, allocations: 26.84 kB / 377.7 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.831e-05/0.371, allocations: 16.11 kB / 377.7 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001095/0.3721, allocations: 0.5554 MB / 378.3 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006778/0.3789, allocations: 4.057 MB / 382.3 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001364/0.3803, allocations: 0.5661 MB / 382.9 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009236/0.3813, allocations: 377.2 kB / 383.3 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.012e-05/0.3813, allocations: 5.422 kB / 383.3 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.745e-05/0.3814, allocations: 40.73 kB / 383.3 MB, free: 8.414 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.405e-06/0.3814, allocations: 0.7656 kB / 383.3 MB, free: 8.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002778/0.3842, allocations: 0.9962 MB / 384.3 MB, free: 8.156 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.009e-05/0.3843, allocations: 262 kB / 384.6 MB, free: 7.844 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005012/0.3893, allocations: 3.163 MB / 387.7 MB, free: 7.164 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.198e-05/0.3894, allocations: 40.55 kB / 387.8 MB, free: 7.125 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007628/0.3901, allocations: 0.8564 MB / 388.6 MB, free: 6.461 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001013/0.3903, allocations: 114.2 kB / 388.7 MB, free: 6.375 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.665e-05/0.3903, allocations: 11.52 kB / 388.7 MB, free: 6.367 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.095e-05/0.3904, allocations: 325.1 kB / 389.1 MB, free: 6.055 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004697/0.3908, allocations: 219.1 kB / 389.3 MB, free: 5.984 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005531/0.3914, allocations: 410 kB / 389.7 MB, free: 5.695 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004909/0.3919, allocations: 264.7 kB / 389.9 MB, free: 5.594 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.3919, allocations: 1.094 kB / 389.9 MB, free: 5.594 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001788/0.3937, allocations: 0.8398 MB / 390.8 MB, free: 5.266 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/0.3937, allocations: 13.94 kB / 390.8 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/0.3938, allocations: 3.406 kB / 390.8 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003192/0.3941, allocations: 74.05 kB / 390.9 MB, free: 5.242 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004687/0.3946, allocations: 120 kB / 391 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001489/0.3961, allocations: 1.649 MB / 392.6 MB, free: 3.727 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007527/0.3968, allocations: 77.56 kB / 392.7 MB, free: 3.695 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.95e-05/0.3969, allocations: 17.75 kB / 392.7 MB, free: 3.691 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.001133/0.398, allocations: 0.6603 MB / 393.4 MB, free: 3.391 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002666/0.3983, allocations: 191.8 kB / 393.6 MB, free: 3.293 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003171/0.3986, allocations: 221.2 kB / 393.8 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.3986, allocations: 2.75 kB / 393.8 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.3987, allocations: 3.953 kB / 393.8 MB, free: 3.207 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.3987, allocations: 4.781 kB / 393.8 MB, free: 3.207 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003606/0.4023, allocations: 2.185 MB / 396 MB, free: 1.789 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.4023, allocations: 0 / 396 MB, free: 1.789 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003798/0.4027, allocations: 91.19 kB / 396.1 MB, free: 1.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001916/0.4029, allocations: 59.47 kB / 396.1 MB, free: 1.738 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.106e-05/0.4029, allocations: 11.16 kB / 396.1 MB, free: 1.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001094/0.404, allocations: 1.597 MB / 397.7 MB, free: 192 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.404, allocations: 3.281 kB / 397.7 MB, free: 192 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001853/0.4059, allocations: 1.022 MB / 398.8 MB, free: 15.61 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006653/0.4066, allocations: 449 kB / 399.2 MB, free: 15.29 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001717/0.4068, allocations: 14.31 kB / 399.2 MB, free: 15.29 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005097/0.4073, allocations: 71.03 kB / 399.3 MB, free: 15.26 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.4074, allocations: 41.84 kB / 399.3 MB, free: 15.24 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.559e-05/0.4074, allocations: 14.78 kB / 399.3 MB, free: 15.23 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003237/0.4107, allocations: 2.261 MB / 401.6 MB, free: 14.08 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4107, allocations: 4 kB / 401.6 MB, free: 14.07 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001139/0.4118, allocations: 255.5 kB / 401.9 MB, free: 13.82 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,cell.limIntegrator.y,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 (29): * Single equations (assignments): 28 * 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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001151/0.413, allocations: 462.9 kB / 402.3 MB, free: 13.54 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001419/0.4144, allocations: 0.6366 MB / 402.9 MB, free: 12.91 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.4144, allocations: 0 / 402.9 MB, free: 12.91 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006457/0.4151, allocations: 372 kB / 403.3 MB, free: 12.54 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001309/0.4164, allocations: 280.3 kB / 403.6 MB, free: 12.27 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006851/0.4233, allocations: 3.977 MB / 407.6 MB, free: 8.258 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001299/0.4246, allocations: 1.497 MB / 409.1 MB, free: 6.73 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009179/0.4255, allocations: 302.1 kB / 409.4 MB, free: 6.434 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002769/0.4258, allocations: 87.44 kB / 409.4 MB, free: 6.348 MB / 318.1 MB Notification: Performance of SimCode: time 6.92e-07/0.4258, allocations: 3.938 kB / 409.4 MB, free: 6.344 MB / 318.1 MB Notification: Performance of Templates: time 0.03236/0.4582, allocations: 17.5 MB / 426.9 MB, free: 4.98 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches