Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.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_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 107.3 kB / 16.92 MB, free: 5.77 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.001026/0.001026, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.34/1.34, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001075/0.001075, allocations: 48.77 kB / 300.6 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1031, allocations: 49.44 MB / 350 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007536/0.1107, allocations: 6.02 MB / 356.1 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00358/0.1143, allocations: 2.131 MB / 358.2 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004697/0.1148, allocations: 15.94 kB / 358.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001429/0.1162, allocations: 0.6302 MB / 358.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007838/0.1171, allocations: 401.8 kB / 359.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008918/0.118, allocations: 405.4 kB / 359.6 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001325/0.1193, allocations: 1.306 MB / 360.9 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006016/0.1199, allocations: 473.7 kB / 361.4 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004532/0.1204, allocations: 494.4 kB / 361.9 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006041/0.121, allocations: 0.5955 MB / 362.5 MB, free: 7.934 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001411/0.1211, allocations: 116 kB / 362.6 MB, free: 7.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003029/0.1214, allocations: 172 kB / 362.8 MB, free: 7.652 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004426/0.1219, allocations: 0.6506 MB / 363.4 MB, free: 7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006968/0.1226, allocations: 0.8894 MB / 364.3 MB, free: 6.105 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002036/0.1246, allocations: 2.585 MB / 366.9 MB, free: 3.512 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.1247, allocations: 0 / 366.9 MB, free: 3.512 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.1247, allocations: 0 / 366.9 MB, free: 3.512 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.767e-05/0.1247, allocations: 0 / 366.9 MB, free: 3.512 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.00412/0.1288, allocations: 2.364 MB / 369.2 MB, free: 1.086 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.626e-05/0.1289, allocations: 8.031 kB / 369.3 MB, free: 1.078 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000316/0.1292, allocations: 210.3 kB / 369.5 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1696/0.2988, allocations: 1.653 MB / 371.1 MB, free: 24.01 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003022/0.2991, allocations: 139.1 kB / 371.3 MB, free: 23.95 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.2993, allocations: 64.53 kB / 371.3 MB, free: 23.94 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001545/0.3008, allocations: 0.8255 MB / 372.1 MB, free: 23.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.3008, allocations: 9.281 kB / 372.1 MB, free: 23.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.37e-05/0.3009, allocations: 26.94 kB / 372.2 MB, free: 23.69 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.597e-05/0.3009, allocations: 19.5 kB / 372.2 MB, free: 23.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001032/0.302, allocations: 0.5448 MB / 372.7 MB, free: 23.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006296/0.3083, allocations: 4.001 MB / 376.7 MB, free: 21.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001412/0.3097, allocations: 0.5313 MB / 377.3 MB, free: 21.15 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008638/0.3106, allocations: 354.4 kB / 377.6 MB, free: 21.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.414e-05/0.3106, allocations: 4.312 kB / 377.6 MB, free: 21.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.708e-05/0.3107, allocations: 51.06 kB / 377.7 MB, free: 20.99 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.705e-06/0.3107, allocations: 0 / 377.7 MB, free: 20.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002611/0.3133, allocations: 0.9458 MB / 378.6 MB, free: 20.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.032e-05/0.3134, allocations: 267.2 kB / 378.9 MB, free: 20.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004737/0.3182, allocations: 3.147 MB / 382 MB, free: 19.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.229e-05/0.3183, allocations: 33.08 kB / 382.1 MB, free: 19.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006925/0.319, allocations: 0.8554 MB / 382.9 MB, free: 18.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001097/0.3191, allocations: 122.9 kB / 383 MB, free: 18.44 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001635/0.3193, allocations: 92.38 kB / 383.1 MB, free: 18.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.053e-05/0.3193, allocations: 327.2 kB / 383.4 MB, free: 18.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004779/0.3198, allocations: 211.5 kB / 383.6 MB, free: 18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005084/0.3203, allocations: 397.2 kB / 384 MB, free: 17.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009042/0.3212, allocations: 0.517 MB / 384.6 MB, free: 17.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.3213, allocations: 6.781 kB / 384.6 MB, free: 17.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001818/0.3231, allocations: 0.7738 MB / 385.3 MB, free: 17.07 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.524e-05/0.3231, allocations: 7.219 kB / 385.3 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.3231, allocations: 8.188 kB / 385.3 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003245/0.3235, allocations: 70.81 kB / 385.4 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000456/0.3239, allocations: 117.5 kB / 385.5 MB, free: 17.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001434/0.3254, allocations: 1.792 MB / 387.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008048/0.3262, allocations: 77.25 kB / 387.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.824e-05/0.3262, allocations: 21.8 kB / 387.4 MB, free: 15.32 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.001124/0.3274, allocations: 0.6605 MB / 388.1 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003696/0.3277, allocations: 178.4 kB / 388.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000341/0.3281, allocations: 216.8 kB / 388.5 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.3281, allocations: 3.875 kB / 388.5 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.3281, allocations: 3.625 kB / 388.5 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.3281, allocations: 0 / 388.5 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003736/0.3319, allocations: 2.164 MB / 390.6 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.329e-06/0.3319, allocations: 0 / 390.6 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003918/0.3323, allocations: 89.53 kB / 390.7 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001816/0.3325, allocations: 55.58 kB / 390.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.913e-05/0.3325, allocations: 12.14 kB / 390.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001146/0.3337, allocations: 1.745 MB / 392.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.3337, allocations: 1.375 kB / 392.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00173/0.3354, allocations: 0.9744 MB / 393.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006794/0.3361, allocations: 441.7 kB / 393.9 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001608/0.3363, allocations: 12.36 kB / 394 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000531/0.3368, allocations: 53.61 kB / 394 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.3369, allocations: 44.59 kB / 394.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.539e-05/0.337, allocations: 15.56 kB / 394.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002559/0.3395, allocations: 2.244 MB / 396.3 MB, free: 9.594 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3396, allocations: 4 kB / 396.3 MB, free: 9.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008469/0.3404, allocations: 258.7 kB / 396.6 MB, free: 9.477 MB / 302.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001057/0.3415, allocations: 473.2 kB / 397 MB, free: 9.223 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00129/0.3428, allocations: 0.6359 MB / 397.7 MB, free: 8.578 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.3428, allocations: 7.938 kB / 397.7 MB, free: 8.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005596/0.3434, allocations: 355.2 kB / 398 MB, free: 8.211 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001201/0.3446, allocations: 284 kB / 398.3 MB, free: 7.938 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00531/0.3499, allocations: 3.699 MB / 402 MB, free: 4.215 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009148/0.3508, allocations: 1.489 MB / 403.5 MB, free: 2.695 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0009063/0.3517, allocations: 303.1 kB / 403.8 MB, free: 2.395 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002318/0.352, allocations: 99.42 kB / 403.9 MB, free: 2.297 MB / 302.1 MB Notification: Performance of SimCode: time 1.502e-06/0.352, allocations: 0 / 403.9 MB, free: 2.297 MB / 302.1 MB Notification: Performance of Templates: time 0.03887/0.3909, allocations: 19.25 MB / 423.1 MB, free: 15.2 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches