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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001592/0.001592, allocations: 107.7 kB / 17.06 MB, free: 5.996 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.001781/0.001782, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.366/1.366, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 51.92 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.2788, allocations: 49.43 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007027/0.2859, allocations: 6.013 MB / 406.2 MB, free: 2.77 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003172/0.2891, allocations: 2.142 MB / 408.4 MB, free: 0.625 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003648/0.2895, allocations: 15.94 kB / 408.4 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001205/0.2907, allocations: 0.6264 MB / 409 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006553/0.2914, allocations: 413.6 kB / 409.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007838/0.2922, allocations: 420 kB / 409.8 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001177/0.2934, allocations: 1.308 MB / 411.1 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005718/0.2939, allocations: 469.8 kB / 411.6 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004954/0.2944, allocations: 498.3 kB / 412.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000548/0.295, allocations: 0.5915 MB / 412.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001252/0.2951, allocations: 116 kB / 412.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002547/0.2954, allocations: 172 kB / 413 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004062/0.2958, allocations: 0.6545 MB / 413.6 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006562/0.2965, allocations: 0.8894 MB / 414.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002168/0.2987, allocations: 2.631 MB / 417.1 MB, free: 7.816 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.2987, allocations: 0 / 417.1 MB, free: 7.816 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2987, allocations: 0 / 417.1 MB, free: 7.816 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.396e-05/0.2987, allocations: 3.938 kB / 417.1 MB, free: 7.812 MB / 334.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.003491/0.3022, allocations: 2.43 MB / 419.6 MB, free: 5.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.3022, allocations: 16.02 kB / 419.6 MB, free: 5.305 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001176/0.3024, allocations: 102.7 kB / 419.7 MB, free: 5.195 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000277/0.3027, allocations: 223.5 kB / 419.9 MB, free: 4.977 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002362/0.305, allocations: 1.7 MB / 421.6 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001261/0.3052, allocations: 100.7 kB / 421.7 MB, free: 3.094 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.3053, allocations: 67.92 kB / 421.8 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001387/0.3067, allocations: 0.8258 MB / 422.6 MB, free: 2.148 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.724e-05/0.3067, allocations: 4 kB / 422.6 MB, free: 2.145 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.387e-05/0.3068, allocations: 24 kB / 422.6 MB, free: 2.121 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.707e-05/0.3068, allocations: 16 kB / 422.6 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009935/0.3078, allocations: 0.5517 MB / 423.2 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00543/0.3132, allocations: 3.99 MB / 427.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001267/0.3145, allocations: 0.5337 MB / 427.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007335/0.3153, allocations: 357.2 kB / 428.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.631e-05/0.3153, allocations: 4.281 kB / 428.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/0.3153, allocations: 46.84 kB / 428.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 4.058e-06/0.3153, allocations: 0 / 428.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002208/0.3176, allocations: 0.9538 MB / 429.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001278/0.3177, allocations: 269 kB / 429.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003685/0.3214, allocations: 3.148 MB / 432.5 MB, free: 8.004 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.606e-05/0.3214, allocations: 33.7 kB / 432.5 MB, free: 7.965 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006949/0.3221, allocations: 0.8614 MB / 433.4 MB, free: 7.098 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001057/0.3223, allocations: 127 kB / 433.5 MB, free: 6.973 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001551/0.3224, allocations: 90.2 kB / 433.6 MB, free: 6.879 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.3225, allocations: 322 kB / 433.9 MB, free: 6.559 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004477/0.323, allocations: 213 kB / 434.1 MB, free: 6.352 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005501/0.3235, allocations: 402 kB / 434.5 MB, free: 5.887 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009305/0.3245, allocations: 0.509 MB / 435 MB, free: 5.328 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.3245, allocations: 8 kB / 435 MB, free: 5.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001501/0.326, allocations: 0.7893 MB / 435.8 MB, free: 4.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.326, allocations: 8 kB / 435.8 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/0.3261, allocations: 4 kB / 435.8 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002919/0.3264, allocations: 65 kB / 435.9 MB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000468/0.3268, allocations: 119.8 kB / 436 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00176/0.3286, allocations: 1.802 MB / 437.8 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005744/0.3292, allocations: 71.59 kB / 437.9 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.792e-05/0.3292, allocations: 20 kB / 437.9 MB, free: 2.297 MB / 350.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.0007873/0.33, allocations: 0.6576 MB / 438.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000284/0.3303, allocations: 194.7 kB / 438.7 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003075/0.3306, allocations: 218.5 kB / 438.9 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.3307, allocations: 7.938 kB / 438.9 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.3307, allocations: 0 / 438.9 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.3307, allocations: 3.984 kB / 439 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003548/0.3342, allocations: 2.159 MB / 441.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.3342, allocations: 0 / 441.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003881/0.3346, allocations: 87.81 kB / 441.2 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001794/0.3348, allocations: 56.89 kB / 441.3 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.295e-05/0.3349, allocations: 11.98 kB / 441.3 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001448/0.3363, allocations: 1.74 MB / 443 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.644e-06/0.3363, allocations: 7.938 kB / 443 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001736/0.3381, allocations: 0.9808 MB / 444 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007994/0.3389, allocations: 451.7 kB / 444.4 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001978/0.3391, allocations: 8 kB / 444.4 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005585/0.3397, allocations: 55.94 kB / 444.5 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.3398, allocations: 43.89 kB / 444.5 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.627e-05/0.3398, allocations: 12 kB / 444.6 MB, free: 11.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00299/0.3428, allocations: 2.243 MB / 446.8 MB, free: 9.082 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3428, allocations: 0 / 446.8 MB, free: 9.082 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009041/0.3437, allocations: 263.5 kB / 447.1 MB, free: 8.824 MB / 366.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.003151/0.3469, allocations: 1.909 MB / 449 MB, free: 7.066 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001291/0.3482, allocations: 0.6003 MB / 449.6 MB, free: 6.453 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.3482, allocations: 0 / 449.6 MB, free: 6.453 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006565/0.3489, allocations: 371 kB / 449.9 MB, free: 6.078 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001286/0.3502, allocations: 282.4 kB / 450.2 MB, free: 5.801 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02899/0.3792, allocations: 19.76 MB / 470 MB, free: 1.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001519/0.3807, allocations: 1.493 MB / 471.5 MB, free: 212 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007242/0.3815, allocations: 299.1 kB / 471.7 MB, free: 15.91 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008764/0.3824, allocations: 0.6399 MB / 472.4 MB, free: 15.27 MB / 398.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3824, allocations: 4 kB / 472.4 MB, free: 15.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07287/0.4552, allocations: 36.3 MB / 0.4968 GB, free: 11.28 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.28/14.74, allocations: 11.08 kB / 0.4968 GB, free: 11.27 MB / 430.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[24006]=1200.000000 File[9220]=1024.000000 " 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