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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001556/0.001556, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001786/0.001786, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2813/0.2825, allocations: 50.54 MB / 408.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.006642/0.2892, allocations: 6.073 MB / 414.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00323/0.2925, allocations: 2.301 MB / 417.1 MB, free: 9.152 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003443/0.2928, allocations: 15.94 kB / 417.1 MB, free: 9.137 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001173/0.294, allocations: 0.6263 MB / 417.8 MB, free: 8.508 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007022/0.2948, allocations: 457.6 kB / 418.2 MB, free: 8.059 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007094/0.2955, allocations: 406.5 kB / 418.6 MB, free: 7.668 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00113/0.2966, allocations: 1.313 MB / 419.9 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005645/0.2972, allocations: 477.8 kB / 420.4 MB, free: 5.859 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004462/0.2976, allocations: 0.4945 MB / 420.9 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005369/0.2982, allocations: 0.5877 MB / 421.5 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001337/0.2983, allocations: 120 kB / 421.6 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002425/0.2986, allocations: 176 kB / 421.7 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004062/0.299, allocations: 0.6544 MB / 422.4 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006377/0.2996, allocations: 0.8816 MB / 423.3 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002137/0.3018, allocations: 2.646 MB / 425.9 MB, free: 292 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.3018, allocations: 4 kB / 425.9 MB, free: 288 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3018, allocations: 0 / 425.9 MB, free: 288 kB / 334.1 MB Notification: Performance of Transformations before backend: time 4.089e-05/0.3019, allocations: 0 / 425.9 MB, free: 288 kB / 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.003851/0.3057, allocations: 2.433 MB / 428.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.3058, allocations: 12.03 kB / 428.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001168/0.3059, allocations: 106.7 kB / 428.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002785/0.3062, allocations: 227.5 kB / 428.7 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002425/0.3086, allocations: 1.693 MB / 430.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001212/0.3087, allocations: 104.7 kB / 430.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.3088, allocations: 63.95 kB / 430.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/0.3102, allocations: 0.8258 MB / 431.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.95e-05/0.3102, allocations: 3.938 kB / 431.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.217e-05/0.3103, allocations: 31.94 kB / 431.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.433e-05/0.3103, allocations: 16 kB / 431.4 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009886/0.3113, allocations: 0.5477 MB / 432 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005446/0.3168, allocations: 4.002 MB / 436 MB, free: 5.898 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00124/0.318, allocations: 0.534 MB / 436.5 MB, free: 5.359 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006993/0.3187, allocations: 361.2 kB / 436.9 MB, free: 5.004 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.607e-05/0.3188, allocations: 12.2 kB / 436.9 MB, free: 4.992 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.716e-05/0.3188, allocations: 38.84 kB / 436.9 MB, free: 4.945 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.094e-06/0.3188, allocations: 0 / 436.9 MB, free: 4.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002166/0.321, allocations: 0.9545 MB / 437.9 MB, free: 3.965 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/0.3211, allocations: 265 kB / 438.1 MB, free: 3.645 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003611/0.3247, allocations: 3.156 MB / 441.3 MB, free: 464 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.79e-05/0.3248, allocations: 37.64 kB / 441.3 MB, free: 420 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007427/0.3256, allocations: 0.8655 MB / 442.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.3257, allocations: 126.9 kB / 442.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001451/0.3258, allocations: 94.22 kB / 442.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.3259, allocations: 326 kB / 442.7 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004345/0.3264, allocations: 205 kB / 442.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005631/0.327, allocations: 401.9 kB / 443.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008921/0.3279, allocations: 0.5244 MB / 443.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.3279, allocations: 0 / 443.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001508/0.3294, allocations: 0.7857 MB / 444.6 MB, free: 12.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.3294, allocations: 8.062 kB / 444.6 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.3294, allocations: 4 kB / 444.6 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000312/0.3298, allocations: 68.81 kB / 444.7 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004578/0.3302, allocations: 115.8 kB / 444.8 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001852/0.3321, allocations: 1.798 MB / 446.6 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00063/0.3327, allocations: 75.59 kB / 446.7 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.066e-05/0.3328, allocations: 20 kB / 446.7 MB, free: 10.73 MB / 366.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.0008501/0.3336, allocations: 0.6538 MB / 447.4 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002408/0.3339, allocations: 198.7 kB / 447.6 MB, free: 9.871 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002638/0.3341, allocations: 218.6 kB / 447.8 MB, free: 9.652 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.3342, allocations: 4 kB / 447.8 MB, free: 9.648 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.227e-06/0.3342, allocations: 0 / 447.8 MB, free: 9.648 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.3342, allocations: 3.984 kB / 447.8 MB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003479/0.3377, allocations: 2.155 MB / 449.9 MB, free: 7.418 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.3377, allocations: 0 / 449.9 MB, free: 7.418 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003983/0.3381, allocations: 91.88 kB / 450 MB, free: 7.328 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001824/0.3383, allocations: 60.81 kB / 450.1 MB, free: 7.266 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.135e-05/0.3383, allocations: 12 kB / 450.1 MB, free: 7.254 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00157/0.3399, allocations: 1.736 MB / 451.8 MB, free: 5.379 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.3399, allocations: 4.094 kB / 451.8 MB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001788/0.3417, allocations: 0.9959 MB / 452.8 MB, free: 4.352 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008022/0.3425, allocations: 451.7 kB / 453.3 MB, free: 3.891 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001639/0.3427, allocations: 11.94 kB / 453.3 MB, free: 3.879 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005212/0.3432, allocations: 59.94 kB / 453.4 MB, free: 3.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001022/0.3433, allocations: 39.89 kB / 453.4 MB, free: 3.781 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.246e-05/0.3434, allocations: 8 kB / 453.4 MB, free: 3.773 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002781/0.3462, allocations: 2.263 MB / 455.7 MB, free: 1.492 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.3462, allocations: 0 / 455.7 MB, free: 1.492 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008115/0.347, allocations: 271.5 kB / 455.9 MB, free: 1.227 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.002958/0.3499, allocations: 1.87 MB / 457.8 MB, free: 15.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001272/0.3512, allocations: 0.612 MB / 458.4 MB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.3513, allocations: 3.938 kB / 458.4 MB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006056/0.3519, allocations: 367 kB / 458.8 MB, free: 14.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001203/0.3531, allocations: 285.7 kB / 459 MB, free: 14.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02536/0.3785, allocations: 19.77 MB / 478.8 MB, free: 10.12 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001112/0.3796, allocations: 1.497 MB / 480.3 MB, free: 8.602 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006307/0.3802, allocations: 303.1 kB / 480.6 MB, free: 8.301 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007809/0.381, allocations: 0.6477 MB / 481.3 MB, free: 7.652 MB / 398.1 MB Notification: Performance of SimCode: time 7.61e-07/0.381, allocations: 0 / 481.3 MB, free: 7.652 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0678/0.4489, allocations: 36.34 MB / 0.5055 GB, free: 3.57 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.28/14.73, allocations: 2.953 kB / 0.5055 GB, free: 3.57 MB / 430.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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