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.001222/0.001222, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001247/0.001247, allocations: 205.2 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.415/1.415, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001761/0.001761, allocations: 64.12 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3125/0.3143, allocations: 50.54 MB / 408.7 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008/0.3224, allocations: 6.066 MB / 414.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003973/0.3264, allocations: 2.298 MB / 417.1 MB, free: 9.262 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005856/0.327, allocations: 19.94 kB / 417.1 MB, free: 9.242 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001571/0.3286, allocations: 0.6263 MB / 417.8 MB, free: 8.613 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001019/0.3297, allocations: 445.6 kB / 418.2 MB, free: 8.176 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009573/0.3306, allocations: 406.7 kB / 418.6 MB, free: 7.781 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00166/0.3323, allocations: 1.313 MB / 419.9 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007143/0.333, allocations: 477.8 kB / 420.4 MB, free: 5.973 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007032/0.3337, allocations: 0.4906 MB / 420.9 MB, free: 5.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007352/0.3345, allocations: 0.5838 MB / 421.4 MB, free: 4.895 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001517/0.3346, allocations: 116 kB / 421.6 MB, free: 4.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003522/0.335, allocations: 179.9 kB / 421.7 MB, free: 4.605 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006017/0.3356, allocations: 0.6583 MB / 422.4 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008747/0.3365, allocations: 0.8816 MB / 423.3 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002951/0.3395, allocations: 2.642 MB / 425.9 MB, free: 416 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3395, allocations: 0 / 425.9 MB, free: 416 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.572e-06/0.3395, allocations: 4 kB / 425.9 MB, free: 412 kB / 334.1 MB Notification: Performance of Transformations before backend: time 3.98e-05/0.3395, allocations: 0 / 425.9 MB, free: 412 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.00457/0.3441, allocations: 2.43 MB / 428.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.3442, allocations: 15.97 kB / 428.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000163/0.3443, allocations: 106.7 kB / 428.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003879/0.3447, allocations: 227.5 kB / 428.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002796/0.3475, allocations: 1.693 MB / 430.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001495/0.3477, allocations: 108.6 kB / 430.5 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000111/0.3478, allocations: 67.95 kB / 430.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001511/0.3494, allocations: 0.8258 MB / 431.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.3494, allocations: 3.938 kB / 431.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.812e-05/0.3495, allocations: 28 kB / 431.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.923e-05/0.3495, allocations: 16 kB / 431.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001107/0.3506, allocations: 0.5516 MB / 432 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006914/0.3575, allocations: 3.994 MB / 436 MB, free: 6.016 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001342/0.3589, allocations: 0.5303 MB / 436.5 MB, free: 5.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007841/0.3597, allocations: 373.2 kB / 436.9 MB, free: 5.113 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.375e-05/0.3597, allocations: 4.281 kB / 436.9 MB, free: 5.109 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.174e-05/0.3598, allocations: 46.72 kB / 436.9 MB, free: 5.055 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.314e-06/0.3598, allocations: 0 / 436.9 MB, free: 5.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.00253/0.3623, allocations: 0.9505 MB / 437.9 MB, free: 4.078 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001835/0.3625, allocations: 261 kB / 438.1 MB, free: 3.762 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004655/0.3672, allocations: 3.164 MB / 441.3 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001061/0.3673, allocations: 37.7 kB / 441.3 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008742/0.3682, allocations: 0.8577 MB / 442.2 MB, free: 15.65 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001357/0.3684, allocations: 126.8 kB / 442.3 MB, free: 15.53 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001855/0.3685, allocations: 98.2 kB / 442.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001679/0.3687, allocations: 326 kB / 442.7 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004948/0.3692, allocations: 205 kB / 442.9 MB, free: 14.91 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006479/0.3699, allocations: 404.9 kB / 443.3 MB, free: 14.44 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009965/0.3709, allocations: 0.5244 MB / 443.8 MB, free: 13.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.3709, allocations: 0 / 443.8 MB, free: 13.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.00186/0.3728, allocations: 0.7818 MB / 444.6 MB, free: 13.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/0.3728, allocations: 12.03 kB / 444.6 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.3728, allocations: 7.984 kB / 444.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003185/0.3731, allocations: 64.83 kB / 444.7 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000469/0.3736, allocations: 115.9 kB / 444.8 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002055/0.3757, allocations: 1.79 MB / 446.6 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008412/0.3766, allocations: 75.59 kB / 446.7 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.355e-05/0.3766, allocations: 19.98 kB / 446.7 MB, free: 10.85 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.001447/0.3781, allocations: 0.6577 MB / 447.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004191/0.3785, allocations: 198.7 kB / 447.6 MB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004104/0.3789, allocations: 214.6 kB / 447.8 MB, free: 9.773 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.3789, allocations: 4 kB / 447.8 MB, free: 9.77 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.3789, allocations: 0 / 447.8 MB, free: 9.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.3789, allocations: 0 / 447.8 MB, free: 9.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003974/0.3829, allocations: 2.163 MB / 449.9 MB, free: 7.535 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.3829, allocations: 0 / 449.9 MB, free: 7.535 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004097/0.3834, allocations: 87.88 kB / 450 MB, free: 7.449 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002121/0.3836, allocations: 68.94 kB / 450.1 MB, free: 7.379 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.396e-05/0.3836, allocations: 11.98 kB / 450.1 MB, free: 7.367 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001816/0.3854, allocations: 1.74 MB / 451.8 MB, free: 5.488 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.3855, allocations: 0 / 451.8 MB, free: 5.488 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002138/0.3876, allocations: 0.9882 MB / 452.8 MB, free: 4.473 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008546/0.3885, allocations: 455.6 kB / 453.3 MB, free: 4.008 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001536/0.3886, allocations: 12 kB / 453.3 MB, free: 3.996 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005213/0.3892, allocations: 55.94 kB / 453.3 MB, free: 3.941 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001223/0.3893, allocations: 35.95 kB / 453.4 MB, free: 3.906 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.837e-05/0.3893, allocations: 12 kB / 453.4 MB, free: 3.895 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003449/0.3928, allocations: 2.255 MB / 455.6 MB, free: 1.621 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3928, allocations: 3.938 kB / 455.6 MB, free: 1.617 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000993/0.3938, allocations: 263.5 kB / 455.9 MB, free: 1.359 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.003953/0.3978, allocations: 1.88 MB / 457.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001407/0.3992, allocations: 0.608 MB / 458.4 MB, free: 14.98 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.3992, allocations: 0 / 458.4 MB, free: 14.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006804/0.3999, allocations: 371 kB / 458.7 MB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001644/0.4016, allocations: 299.5 kB / 459 MB, free: 14.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0355/0.4371, allocations: 19.76 MB / 478.8 MB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001462/0.4386, allocations: 1.493 MB / 480.3 MB, free: 8.73 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009305/0.4395, allocations: 303.1 kB / 480.6 MB, free: 8.43 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009516/0.4405, allocations: 0.6516 MB / 481.2 MB, free: 7.777 MB / 398.1 MB Notification: Performance of SimCode: time 3.427e-06/0.4405, allocations: 0 / 481.2 MB, free: 7.777 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08738/0.5279, allocations: 36.34 MB / 0.5054 GB, free: 3.699 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.33/15.86, allocations: 9.797 kB / 0.5055 GB, free: 3.695 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.1.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