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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001896/0.001896, 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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002332/0.002332, allocations: 213.6 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.507/1.507, allocations: 230.5 MB / 257.4 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002129/0.002129, allocations: 71.81 kB / 377.7 MB, free: 2.898 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.2872, allocations: 53.41 MB / 431.1 MB, free: 6.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007943/0.2952, allocations: 5.408 MB / 436.5 MB, free: 1.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004031/0.2992, allocations: 2.17 MB / 438.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007079/0.2999, allocations: 23.81 kB / 438.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001582/0.3015, allocations: 0.603 MB / 439.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001145/0.3026, allocations: 461.6 kB / 439.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009674/0.3036, allocations: 414.5 kB / 440.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001784/0.3054, allocations: 1.31 MB / 441.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006628/0.306, allocations: 294.3 kB / 441.8 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008069/0.3068, allocations: 0.5022 MB / 442.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001022/0.3079, allocations: 0.5721 MB / 442.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002881/0.3081, allocations: 116 kB / 443 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005283/0.3087, allocations: 168 kB / 443.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000622/0.3093, allocations: 0.6661 MB / 443.8 MB, free: 9.719 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000935/0.3102, allocations: 0.664 MB / 444.5 MB, free: 9.051 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002819/0.3131, allocations: 2.669 MB / 447.1 MB, free: 6.371 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.3131, allocations: 3.938 kB / 447.1 MB, free: 6.367 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3131, allocations: 0 / 447.1 MB, free: 6.367 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.692e-05/0.3132, allocations: 3.984 kB / 447.1 MB, free: 6.363 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.005365/0.3185, allocations: 2.358 MB / 449.5 MB, free: 3.961 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/0.3186, allocations: 15.98 kB / 449.5 MB, free: 3.945 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001848/0.3188, allocations: 102.7 kB / 449.6 MB, free: 3.836 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004644/0.3192, allocations: 235.4 kB / 449.8 MB, free: 3.605 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003217/0.3224, allocations: 1.632 MB / 451.5 MB, free: 1.918 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001919/0.3226, allocations: 189.9 kB / 451.7 MB, free: 1.699 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/0.3227, allocations: 67.94 kB / 451.7 MB, free: 1.633 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001666/0.3244, allocations: 1.185 MB / 452.9 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.054e-05/0.3244, allocations: 4 kB / 452.9 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.496e-05/0.3245, allocations: 24 kB / 452.9 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.735e-05/0.3245, allocations: 16 kB / 453 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001117/0.3256, allocations: 0.5517 MB / 453.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006364/0.332, allocations: 3.595 MB / 457.1 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001318/0.3333, allocations: 0.511 MB / 457.6 MB, free: 11.49 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007735/0.3341, allocations: 348.6 kB / 458 MB, free: 11.15 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.803e-05/0.3341, allocations: 8.266 kB / 458 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.564e-05/0.3342, allocations: 38.84 kB / 458 MB, free: 11.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.495e-06/0.3342, allocations: 4 kB / 458 MB, free: 11.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.00239/0.3365, allocations: 0.8696 MB / 458.9 MB, free: 10.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001499/0.3367, allocations: 269 kB / 459.1 MB, free: 9.887 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005046/0.3417, allocations: 3.168 MB / 462.3 MB, free: 6.684 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.284e-05/0.3418, allocations: 37.7 kB / 462.3 MB, free: 6.641 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009328/0.3427, allocations: 0.8615 MB / 463.2 MB, free: 5.773 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001563/0.3429, allocations: 123 kB / 463.3 MB, free: 5.652 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002057/0.3431, allocations: 94.09 kB / 463.4 MB, free: 5.555 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.3433, allocations: 326 kB / 463.7 MB, free: 5.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005305/0.3438, allocations: 212.9 kB / 463.9 MB, free: 5.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007885/0.3446, allocations: 0.5772 MB / 464.5 MB, free: 4.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00107/0.3457, allocations: 0.5282 MB / 465.1 MB, free: 3.742 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.3457, allocations: 0 / 465.1 MB, free: 3.742 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001892/0.3476, allocations: 0.7895 MB / 465.8 MB, free: 2.941 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.3476, allocations: 4 kB / 465.8 MB, free: 2.938 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.3476, allocations: 4 kB / 465.8 MB, free: 2.934 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003372/0.3479, allocations: 64.81 kB / 465.9 MB, free: 2.867 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004676/0.3484, allocations: 116.1 kB / 466 MB, free: 2.754 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00233/0.3507, allocations: 1.683 MB / 467.7 MB, free: 0.957 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001016/0.3517, allocations: 79.53 kB / 467.8 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.825e-05/0.3518, allocations: 16 kB / 467.8 MB, free: 0.8633 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.001514/0.3533, allocations: 0.6537 MB / 468.5 MB, free: 208 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005533/0.3539, allocations: 202.6 kB / 468.7 MB, free: 4 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005872/0.3545, allocations: 214.6 kB / 468.9 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.3545, allocations: 7.938 kB / 468.9 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3545, allocations: 4.062 kB / 468.9 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-06/0.3545, allocations: 3.984 kB / 468.9 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004562/0.359, allocations: 1.924 MB / 470.8 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.359, allocations: 3.938 kB / 470.8 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003997/0.3594, allocations: 80 kB / 470.9 MB, free: 13.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002046/0.3596, allocations: 56.77 kB / 470.9 MB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.906e-05/0.3597, allocations: 19.92 kB / 471 MB, free: 13.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001751/0.3614, allocations: 1.625 MB / 472.6 MB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3614, allocations: 0 / 472.6 MB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002126/0.3636, allocations: 0.9878 MB / 473.6 MB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009586/0.3645, allocations: 374.6 kB / 473.9 MB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002808/0.3648, allocations: 12 kB / 473.9 MB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006616/0.3655, allocations: 55.94 kB / 474 MB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001239/0.3656, allocations: 39.94 kB / 474 MB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.118e-05/0.3656, allocations: 12 kB / 474.1 MB, free: 10.39 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003711/0.3693, allocations: 2.255 MB / 476.3 MB, free: 8.117 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3693, allocations: 0 / 476.3 MB, free: 8.117 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001088/0.3704, allocations: 259.6 kB / 476.6 MB, free: 7.863 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.004346/0.3748, allocations: 1.914 MB / 478.5 MB, free: 6.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00139/0.3762, allocations: 0.5895 MB / 479.1 MB, free: 5.488 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/0.3762, allocations: 7.938 kB / 479.1 MB, free: 5.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006805/0.3768, allocations: 350.6 kB / 479.4 MB, free: 5.125 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001634/0.3785, allocations: 299.1 kB / 479.7 MB, free: 4.828 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03392/0.4124, allocations: 19.74 MB / 499.4 MB, free: 0.7852 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00137/0.4138, allocations: 0.9083 MB / 0.4886 GB, free: 15.85 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008616/0.4146, allocations: 295.3 kB / 0.4889 GB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001008/0.4156, allocations: 0.6438 MB / 0.4895 GB, free: 14.91 MB / 414.1 MB Notification: Performance of SimCode: time 1.643e-06/0.4156, allocations: 4 kB / 0.4895 GB, free: 14.91 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09128/0.5069, allocations: 38.27 MB / 0.5269 GB, free: 8.812 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.1/15.6, allocations: 7.672 kB / 0.5269 GB, free: 8.809 MB / 446.1 MB " [Timeout remaining time 644] (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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.804025788791478]