Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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_Cell,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",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.001121/0.001121, allocations: 107.8 kB / 17.06 MB, free: 6.02 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.001047/0.001047, allocations: 191 kB / 18 MB, free: 5.102 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.281/1.281, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001066/0.001066, allocations: 43.92 kB / 350.8 MB, free: 3.785 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.2715, allocations: 49.44 MB / 400.2 MB, free: 8.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007287/0.2789, allocations: 5.495 MB / 405.7 MB, free: 3.328 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002755/0.2817, allocations: 1.714 MB / 407.4 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002798/0.282, allocations: 15.94 kB / 407.4 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009792/0.283, allocations: 0.5213 MB / 408 MB, free: 1.074 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000618/0.2836, allocations: 350.2 kB / 408.3 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007592/0.2844, allocations: 376.4 kB / 408.7 MB, free: 376 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008309/0.2852, allocations: 0.9002 MB / 409.6 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004749/0.2857, allocations: 344.8 kB / 409.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000353/0.2861, allocations: 358.8 kB / 410.3 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000443/0.2865, allocations: 442.4 kB / 410.7 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.363e-05/0.2866, allocations: 80 kB / 410.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001828/0.2868, allocations: 127.9 kB / 410.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003875/0.2872, allocations: 0.5766 MB / 411.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005467/0.2878, allocations: 0.7377 MB / 412.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00175/0.2895, allocations: 2.124 MB / 414.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2895, allocations: 4 kB / 414.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.2895, allocations: 0 / 414.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.851e-05/0.2896, allocations: 3.938 kB / 414.3 MB, free: 10.66 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002922/0.2925, allocations: 2.137 MB / 416.5 MB, free: 8.465 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.2925, allocations: 8.031 kB / 416.5 MB, free: 8.457 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.709e-05/0.2926, allocations: 90.7 kB / 416.6 MB, free: 8.359 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002266/0.2929, allocations: 203.6 kB / 416.8 MB, free: 8.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002051/0.2949, allocations: 1.511 MB / 418.3 MB, free: 6.605 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.855e-05/0.295, allocations: 66.7 kB / 418.3 MB, free: 6.535 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.41e-05/0.2951, allocations: 44 kB / 418.4 MB, free: 6.492 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000971/0.2961, allocations: 0.5893 MB / 419 MB, free: 5.859 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.2961, allocations: 0 / 419 MB, free: 5.859 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.755e-05/0.2961, allocations: 24 kB / 419 MB, free: 5.836 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.2962, allocations: 12 kB / 419 MB, free: 5.824 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006694/0.2968, allocations: 343.8 kB / 419.4 MB, free: 5.488 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004093/0.3009, allocations: 3.239 MB / 422.6 MB, free: 2.129 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001081/0.302, allocations: 377.7 kB / 423 MB, free: 1.754 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004641/0.3025, allocations: 188.8 kB / 423.1 MB, free: 1.566 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.633e-05/0.3025, allocations: 3.938 kB / 423.1 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/0.3026, allocations: 42.55 kB / 423.2 MB, free: 1.512 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.944e-06/0.3026, allocations: 0 / 423.2 MB, free: 1.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001946/0.3045, allocations: 0.7038 MB / 423.9 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001081/0.3047, allocations: 209.6 kB / 424.1 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003337/0.308, allocations: 2.892 MB / 427 MB, free: 13.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.411e-05/0.3081, allocations: 33.7 kB / 427 MB, free: 13.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006879/0.3087, allocations: 0.7821 MB / 427.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.023e-05/0.3088, allocations: 87.27 kB / 427.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.3089, allocations: 62.03 kB / 427.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.3091, allocations: 318 kB / 428.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003247/0.3094, allocations: 128.6 kB / 428.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000439/0.3098, allocations: 292.8 kB / 428.7 MB, free: 11.81 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007253/0.3106, allocations: 362.1 kB / 429 MB, free: 11.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.3106, allocations: 4 kB / 429 MB, free: 11.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001163/0.3118, allocations: 0.5571 MB / 429.6 MB, free: 10.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.3118, allocations: 7.984 kB / 429.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.3118, allocations: 4.375 kB / 429.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002828/0.3121, allocations: 68.89 kB / 429.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003021/0.3124, allocations: 79.83 kB / 429.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001861/0.3143, allocations: 1.72 MB / 431.5 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004759/0.3148, allocations: 59.66 kB / 431.5 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.871e-05/0.3148, allocations: 15.98 kB / 431.5 MB, free: 8.742 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.0007749/0.3156, allocations: 0.5718 MB / 432.1 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002418/0.3158, allocations: 174.9 kB / 432.3 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00132/0.3172, allocations: 0.518 MB / 432.8 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.3172, allocations: 4 kB / 432.8 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.844e-06/0.3172, allocations: 0 / 432.8 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.3172, allocations: 3.984 kB / 432.8 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003079/0.3203, allocations: 1.69 MB / 434.5 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.3203, allocations: 4 kB / 434.5 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003139/0.3206, allocations: 48.09 kB / 434.5 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002264/0.3209, allocations: 48.86 kB / 434.6 MB, free: 5.586 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.629e-05/0.3209, allocations: 11.98 kB / 434.6 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001736/0.3227, allocations: 1.662 MB / 436.3 MB, free: 3.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3227, allocations: 4.031 kB / 436.3 MB, free: 3.766 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001534/0.3242, allocations: 0.7149 MB / 437 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007719/0.325, allocations: 391.9 kB / 437.4 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002105/0.3252, allocations: 8 kB / 437.4 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005278/0.3258, allocations: 47.89 kB / 437.4 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.3259, allocations: 32.09 kB / 437.5 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.249e-05/0.3259, allocations: 12 kB / 437.5 MB, free: 2.527 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0033/0.3292, allocations: 2.063 MB / 439.5 MB, free: 452 kB / 350.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3292, allocations: 0 / 439.5 MB, free: 452 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009047/0.3302, allocations: 207.7 kB / 439.7 MB, free: 244 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002633/0.3328, allocations: 1.517 MB / 441.2 MB, free: 14.83 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001094/0.3339, allocations: 431 kB / 441.7 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.3339, allocations: 256 / 441.7 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005411/0.3345, allocations: 274.5 kB / 441.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001108/0.3356, allocations: 246.6 kB / 442.2 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02554/0.3611, allocations: 17.5 MB / 459.7 MB, free: 12.04 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001116/0.3623, allocations: 1.351 MB / 461 MB, free: 10.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005581/0.3629, allocations: 241.7 kB / 461.3 MB, free: 10.42 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007567/0.3637, allocations: 0.5812 MB / 461.8 MB, free: 9.84 MB / 382.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3637, allocations: 0 / 461.8 MB, free: 9.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06641/0.4301, allocations: 32.69 MB / 494.5 MB, free: 9.41 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.65/14.08, allocations: 11.88 kB / 494.6 MB, free: 9.398 MB / 414.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_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_Cell.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches