Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.001081/0.001081, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008997/0.0008997, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9105/0.9105, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.742e-05/1.884e-05, allocations: 2.281 kB / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.005846/0.005865, allocations: 5.436 MB / 330 MB, free: 10.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003578/0.009444, allocations: 2.185 MB / 332.2 MB, free: 8.289 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000437/0.009881, allocations: 19.88 kB / 332.2 MB, free: 8.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001268/0.01115, allocations: 0.6143 MB / 332.8 MB, free: 7.652 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007557/0.0119, allocations: 469.3 kB / 333.3 MB, free: 7.191 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006669/0.01257, allocations: 410.7 kB / 333.7 MB, free: 6.793 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001049/0.01362, allocations: 1.344 MB / 335 MB, free: 5.445 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004437/0.01406, allocations: 290.4 kB / 335.3 MB, free: 5.152 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005817/0.01465, allocations: 0.7328 MB / 336 MB, free: 4.418 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000424/0.01507, allocations: 0.5027 MB / 336.5 MB, free: 3.914 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.636e-05/0.01517, allocations: 116 kB / 336.6 MB, free: 3.801 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002001/0.01537, allocations: 175.9 kB / 336.8 MB, free: 3.629 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003395/0.01571, allocations: 0.674 MB / 337.5 MB, free: 2.953 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003484/0.01605, allocations: 0.5219 MB / 338 MB, free: 2.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001931/0.01798, allocations: 2.586 MB / 340.6 MB, free: 15.83 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.01799, allocations: 0 / 340.6 MB, free: 15.83 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.01799, allocations: 4 kB / 340.6 MB, free: 15.83 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.76e-05/0.01801, allocations: 0 / 340.6 MB, free: 15.83 MB / 314.7 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.002524/0.02053, allocations: 2.342 MB / 342.9 MB, free: 13.44 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.642e-05/0.02059, allocations: 12.03 kB / 343 MB, free: 13.43 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001044/0.02069, allocations: 106.7 kB / 343.1 MB, free: 13.31 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002236/0.02092, allocations: 231.5 kB / 343.3 MB, free: 13.09 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001772/0.02269, allocations: 1.627 MB / 344.9 MB, free: 11.4 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001323/0.02282, allocations: 190.1 kB / 345.1 MB, free: 11.19 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.152e-05/0.02289, allocations: 67.94 kB / 345.2 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001137/0.02403, allocations: 1.169 MB / 346.3 MB, free: 9.812 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.819e-05/0.02405, allocations: 7.938 kB / 346.3 MB, free: 9.805 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.612e-05/0.02409, allocations: 24 kB / 346.4 MB, free: 9.781 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.516e-05/0.02411, allocations: 16 kB / 346.4 MB, free: 9.766 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007158/0.02482, allocations: 0.5477 MB / 346.9 MB, free: 9.215 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003844/0.02867, allocations: 3.608 MB / 350.5 MB, free: 5.496 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008582/0.02953, allocations: 0.4966 MB / 351 MB, free: 4.988 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005012/0.03003, allocations: 346.9 kB / 351.4 MB, free: 4.648 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.448e-05/0.03005, allocations: 4.281 kB / 351.4 MB, free: 4.645 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/0.03009, allocations: 38.84 kB / 351.4 MB, free: 4.598 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 2.735e-06/0.03009, allocations: 4 kB / 351.4 MB, free: 4.594 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.001572/0.03166, allocations: 0.873 MB / 352.3 MB, free: 3.711 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001406/0.0318, allocations: 265 kB / 352.5 MB, free: 3.391 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003421/0.03522, allocations: 3.172 MB / 355.7 MB, free: 188 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.907e-05/0.03527, allocations: 33.7 kB / 355.8 MB, free: 148 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006098/0.03588, allocations: 0.8576 MB / 356.6 MB, free: 15.28 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.659e-05/0.03598, allocations: 123 kB / 356.7 MB, free: 15.16 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001309/0.03611, allocations: 98.09 kB / 356.8 MB, free: 15.05 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.03621, allocations: 322 kB / 357.1 MB, free: 14.73 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003033/0.03651, allocations: 212.9 kB / 357.3 MB, free: 14.53 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004472/0.03696, allocations: 0.5848 MB / 357.9 MB, free: 13.82 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006043/0.03757, allocations: 0.5207 MB / 358.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.03757, allocations: 0 / 358.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001035/0.03861, allocations: 0.7856 MB / 359.2 MB, free: 12.45 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/0.03863, allocations: 7.938 kB / 359.2 MB, free: 12.44 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.03864, allocations: 4 kB / 359.2 MB, free: 12.44 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000254/0.03889, allocations: 72.81 kB / 359.3 MB, free: 12.36 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002817/0.03917, allocations: 120 kB / 359.4 MB, free: 12.25 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001763/0.04094, allocations: 1.679 MB / 361.1 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004709/0.04141, allocations: 75.59 kB / 361.2 MB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.553e-05/0.04143, allocations: 16 kB / 361.2 MB, free: 10.36 MB / 330.7 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.0008598/0.04229, allocations: 0.661 MB / 361.9 MB, free: 9.695 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001889/0.04248, allocations: 194.7 kB / 362.1 MB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001944/0.04268, allocations: 222.6 kB / 362.3 MB, free: 9.289 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.04268, allocations: 4 kB / 362.3 MB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.802e-06/0.04269, allocations: 8.047 kB / 362.3 MB, free: 9.277 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.04269, allocations: 0 / 362.3 MB, free: 9.277 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002376/0.04507, allocations: 1.905 MB / 364.2 MB, free: 7.309 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.04507, allocations: 4 kB / 364.2 MB, free: 7.305 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002251/0.0453, allocations: 83.94 kB / 364.3 MB, free: 7.223 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001546/0.04545, allocations: 56.95 kB / 364.3 MB, free: 7.164 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.635e-05/0.04548, allocations: 15.98 kB / 364.3 MB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001177/0.04665, allocations: 1.628 MB / 366 MB, free: 5.406 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.04666, allocations: 3.938 kB / 366 MB, free: 5.402 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001219/0.04788, allocations: 0.9921 MB / 367 MB, free: 4.383 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008414/0.04872, allocations: 378.5 kB / 367.3 MB, free: 4.012 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.718e-05/0.04881, allocations: 8 kB / 367.3 MB, free: 4.004 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002838/0.04909, allocations: 55.94 kB / 367.4 MB, free: 3.949 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.0492, allocations: 43.92 kB / 367.4 MB, free: 3.906 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.893e-05/0.04922, allocations: 15.94 kB / 367.5 MB, free: 3.891 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002082/0.0513, allocations: 2.255 MB / 369.7 MB, free: 1.617 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.0513, allocations: 4 kB / 369.7 MB, free: 1.613 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006404/0.05194, allocations: 251.6 kB / 370 MB, free: 1.367 MB / 330.7 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.002243/0.05418, allocations: 1.93 MB / 371.9 MB, free: 15.62 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009714/0.05515, allocations: 0.6008 MB / 372.5 MB, free: 15.01 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.05516, allocations: 4 kB / 372.5 MB, free: 15 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004048/0.05556, allocations: 350.6 kB / 372.8 MB, free: 14.65 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008981/0.05646, allocations: 290 kB / 373.1 MB, free: 14.36 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03316/0.08962, allocations: 19.92 MB / 393.1 MB, free: 10.13 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007094/0.09033, allocations: 0.9083 MB / 394 MB, free: 9.191 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005501/0.09088, allocations: 299.2 kB / 394.3 MB, free: 8.895 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006035/0.09148, allocations: 0.6448 MB / 394.9 MB, free: 8.25 MB / 362.7 MB Notification: Performance of SimCode: time 1.452e-06/0.09148, allocations: 0 / 394.9 MB, free: 8.25 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05973/0.1512, allocations: 38.33 MB / 433.2 MB, free: 2.129 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.03/9.182, allocations: 7.031 kB / 433.2 MB, free: 2.125 MB / 394.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.csv --start-time 0 --stop-time 1200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,cell.cell.limIntegrator.y,cell.limIntegrator.y,energy.y Variables in the result:time,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,cell.cell.limIntegrator.y,cell.limIntegrator.y,energy.y [Calling sys.exit(0), Time elapsed: 11.333734258078039]