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.001398/0.001398, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 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.001587/0.001587, allocations: 215.9 kB / 23.73 MB, free: 4.16 MB / 14.72 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 1.488/1.488, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001628/0.001628, allocations: 47.92 kB / 377.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2766/0.2782, allocations: 53.37 MB / 431.1 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007951/0.2861, allocations: 5.407 MB / 436.5 MB, free: 1.188 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00401/0.2902, allocations: 2.182 MB / 438.7 MB, free: 15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004232/0.2906, allocations: 19.88 kB / 438.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001439/0.292, allocations: 0.6108 MB / 439.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008872/0.2929, allocations: 449.6 kB / 439.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008576/0.2938, allocations: 418.6 kB / 440.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001741/0.2955, allocations: 1.308 MB / 441.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005752/0.2961, allocations: 290.4 kB / 441.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000678/0.2968, allocations: 0.5061 MB / 442.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007479/0.2975, allocations: 0.5604 MB / 442.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001678/0.2977, allocations: 127.9 kB / 442.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003413/0.298, allocations: 183.9 kB / 443.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006238/0.2986, allocations: 0.6506 MB / 443.7 MB, free: 9.883 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007412/0.2994, allocations: 0.6718 MB / 444.4 MB, free: 9.207 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002741/0.3021, allocations: 2.662 MB / 447.1 MB, free: 6.535 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3021, allocations: 0 / 447.1 MB, free: 6.535 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.3021, allocations: 0 / 447.1 MB, free: 6.535 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.794e-05/0.3022, allocations: 3.938 kB / 447.1 MB, free: 6.531 MB / 350.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.004234/0.3064, allocations: 2.373 MB / 449.5 MB, free: 4.117 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.3064, allocations: 8.031 kB / 449.5 MB, free: 4.109 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001372/0.3066, allocations: 110.7 kB / 449.6 MB, free: 3.992 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003394/0.3069, allocations: 223.5 kB / 449.8 MB, free: 3.773 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002947/0.3099, allocations: 1.639 MB / 451.4 MB, free: 2.078 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001968/0.3101, allocations: 185.8 kB / 451.6 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001135/0.3102, allocations: 63.95 kB / 451.7 MB, free: 1.801 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001733/0.3119, allocations: 1.181 MB / 452.9 MB, free: 492 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.919e-05/0.3119, allocations: 0 / 452.9 MB, free: 492 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.421e-05/0.312, allocations: 31.94 kB / 452.9 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.961e-05/0.312, allocations: 19.98 kB / 452.9 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001079/0.3131, allocations: 0.5439 MB / 453.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006266/0.3194, allocations: 3.607 MB / 457.1 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00129/0.3207, allocations: 0.4931 MB / 457.6 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007624/0.3214, allocations: 342 kB / 457.9 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.209e-05/0.3215, allocations: 8.219 kB / 457.9 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.725e-05/0.3215, allocations: 38.84 kB / 457.9 MB, free: 11.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.034e-06/0.3215, allocations: 0 / 457.9 MB, free: 11.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002357/0.3239, allocations: 0.873 MB / 458.8 MB, free: 10.39 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000164/0.324, allocations: 269 kB / 459.1 MB, free: 10.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004425/0.3284, allocations: 3.164 MB / 462.2 MB, free: 6.867 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.844e-05/0.3285, allocations: 37.7 kB / 462.3 MB, free: 6.824 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008809/0.3294, allocations: 0.8615 MB / 463.1 MB, free: 5.957 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001266/0.3295, allocations: 123 kB / 463.3 MB, free: 5.836 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001689/0.3297, allocations: 102.1 kB / 463.4 MB, free: 5.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.3299, allocations: 326 kB / 463.7 MB, free: 5.406 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004877/0.3303, allocations: 204.9 kB / 463.9 MB, free: 5.203 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000834/0.3312, allocations: 0.5927 MB / 464.5 MB, free: 4.488 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/0.3322, allocations: 0.5282 MB / 465 MB, free: 3.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.3322, allocations: 4 kB / 465 MB, free: 3.906 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001667/0.3339, allocations: 0.7778 MB / 465.8 MB, free: 3.117 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.3339, allocations: 8 kB / 465.8 MB, free: 3.109 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.3339, allocations: 7.984 kB / 465.8 MB, free: 3.102 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002947/0.3342, allocations: 64.83 kB / 465.9 MB, free: 3.035 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004574/0.3346, allocations: 119.9 kB / 466 MB, free: 2.918 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001897/0.3365, allocations: 1.671 MB / 467.6 MB, free: 1.133 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006801/0.3372, allocations: 87.61 kB / 467.7 MB, free: 1.047 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.213e-05/0.3372, allocations: 16 kB / 467.7 MB, free: 1.031 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.0009706/0.3382, allocations: 0.6537 MB / 468.4 MB, free: 376 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002746/0.3385, allocations: 194.7 kB / 468.6 MB, free: 180 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000306/0.3388, allocations: 218.7 kB / 468.8 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.3388, allocations: 4 kB / 468.8 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.3388, allocations: 0 / 468.8 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.3388, allocations: 7.922 kB / 468.8 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003672/0.3425, allocations: 1.92 MB / 470.7 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.774e-06/0.3425, allocations: 4.125 kB / 470.7 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003945/0.3429, allocations: 87.89 kB / 470.8 MB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002434/0.3431, allocations: 60.81 kB / 470.9 MB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.283e-05/0.3432, allocations: 8 kB / 470.9 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001797/0.345, allocations: 1.624 MB / 472.5 MB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.345, allocations: 4.031 kB / 472.5 MB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002056/0.347, allocations: 0.9884 MB / 473.5 MB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009332/0.348, allocations: 378.6 kB / 473.9 MB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001552/0.3481, allocations: 8 kB / 473.9 MB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005338/0.3486, allocations: 59.95 kB / 473.9 MB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001521/0.3488, allocations: 39.92 kB / 474 MB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.756e-05/0.3488, allocations: 8 kB / 474 MB, free: 10.56 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003649/0.3525, allocations: 2.259 MB / 476.2 MB, free: 8.285 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3525, allocations: 0 / 476.2 MB, free: 8.285 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009691/0.3534, allocations: 259.5 kB / 476.5 MB, free: 8.031 MB / 382.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.004059/0.3575, allocations: 1.927 MB / 478.4 MB, free: 6.281 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001378/0.3589, allocations: 0.6005 MB / 479 MB, free: 5.668 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/0.3589, allocations: 4 kB / 479 MB, free: 5.664 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007129/0.3596, allocations: 351.1 kB / 479.4 MB, free: 5.309 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001439/0.361, allocations: 291.7 kB / 479.7 MB, free: 5.027 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03184/0.3929, allocations: 19.74 MB / 499.4 MB, free: 0.9727 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001169/0.3941, allocations: 0.9121 MB / 0.4886 GB, free: 32 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007835/0.3948, allocations: 299.3 kB / 0.4889 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009362/0.3958, allocations: 0.6476 MB / 0.4895 GB, free: 15.09 MB / 414.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3958, allocations: 0 / 0.4895 GB, free: 15.09 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08931/0.4851, allocations: 38.3 MB / 0.5269 GB, free: 9.066 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.48/14.96, allocations: 3.984 kB / 0.5269 GB, free: 9.062 MB / 446.1 MB " [Timeout remaining time 645] (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/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_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] Reference file matches [Calling sys.exit(0), Time elapsed: 18.07680974761024]