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.001883/0.001883, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002785/0.002785, allocations: 208.2 kB / 23.73 MB, free: 4.379 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.48/1.48, allocations: 230.6 MB / 257.5 MB, free: 7.781 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.001529/0.001529, allocations: 47.92 kB / 377.7 MB, free: 3.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2588/0.2604, allocations: 53.37 MB / 431.1 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007804/0.2682, allocations: 5.399 MB / 436.5 MB, free: 1.203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003971/0.2721, allocations: 2.181 MB / 438.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004755/0.2726, allocations: 19.88 kB / 438.7 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001402/0.274, allocations: 0.6068 MB / 439.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008741/0.2749, allocations: 461.6 kB / 439.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008063/0.2757, allocations: 416.4 kB / 440.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001381/0.2771, allocations: 1.306 MB / 441.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005071/0.2776, allocations: 306.4 kB / 441.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005621/0.2781, allocations: 0.5022 MB / 442.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006705/0.2788, allocations: 0.6188 MB / 442.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001575/0.279, allocations: 116 kB / 443 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003051/0.2793, allocations: 176 kB / 443.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005086/0.2798, allocations: 0.6544 MB / 443.8 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006272/0.2804, allocations: 0.6718 MB / 444.5 MB, free: 9.168 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002575/0.283, allocations: 2.666 MB / 447.1 MB, free: 6.492 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.283, allocations: 3.938 kB / 447.1 MB, free: 6.488 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.283, allocations: 0 / 447.1 MB, free: 6.488 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.728e-05/0.283, allocations: 0 / 447.1 MB, free: 6.488 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.004127/0.2871, allocations: 2.358 MB / 449.5 MB, free: 4.086 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.2872, allocations: 8.031 kB / 449.5 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001408/0.2873, allocations: 110.7 kB / 449.6 MB, free: 3.961 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003359/0.2877, allocations: 227.5 kB / 449.8 MB, free: 3.738 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002771/0.2904, allocations: 1.639 MB / 451.5 MB, free: 2.043 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001706/0.2906, allocations: 181.8 kB / 451.7 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.738e-05/0.2907, allocations: 67.95 kB / 451.7 MB, free: 1.766 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001573/0.2923, allocations: 1.185 MB / 452.9 MB, free: 452 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.803e-05/0.2923, allocations: 0 / 452.9 MB, free: 452 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.322e-05/0.2924, allocations: 28 kB / 452.9 MB, free: 424 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.76e-05/0.2924, allocations: 16 kB / 453 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001035/0.2934, allocations: 0.5477 MB / 453.5 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005746/0.2992, allocations: 3.607 MB / 457.1 MB, free: 12.13 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001319/0.3005, allocations: 0.506 MB / 457.6 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008085/0.3013, allocations: 337.2 kB / 457.9 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.093e-05/0.3013, allocations: 4.281 kB / 457.9 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.885e-05/0.3014, allocations: 42.84 kB / 458 MB, free: 11.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.973e-06/0.3014, allocations: 0 / 458 MB, free: 11.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002459/0.3038, allocations: 0.8777 MB / 458.9 MB, free: 10.35 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001768/0.304, allocations: 265 kB / 459.1 MB, free: 10.03 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004368/0.3084, allocations: 3.172 MB / 462.3 MB, free: 6.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001023/0.3085, allocations: 29.7 kB / 462.3 MB, free: 6.785 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008581/0.3093, allocations: 0.8615 MB / 463.2 MB, free: 5.918 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001264/0.3094, allocations: 122.9 kB / 463.3 MB, free: 5.797 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001688/0.3096, allocations: 98.14 kB / 463.4 MB, free: 5.695 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.3098, allocations: 318 kB / 463.7 MB, free: 5.379 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004779/0.3102, allocations: 220.9 kB / 463.9 MB, free: 5.16 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007073/0.3109, allocations: 0.5887 MB / 464.5 MB, free: 4.449 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009457/0.3119, allocations: 0.5166 MB / 465 MB, free: 3.883 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.279e-06/0.3119, allocations: 0 / 465 MB, free: 3.883 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001683/0.3136, allocations: 0.7934 MB / 465.8 MB, free: 3.078 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.3136, allocations: 4 kB / 465.8 MB, free: 3.074 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.3136, allocations: 4 kB / 465.8 MB, free: 3.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003344/0.3139, allocations: 68.75 kB / 465.9 MB, free: 3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005001/0.3144, allocations: 124 kB / 466 MB, free: 2.879 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002097/0.3165, allocations: 1.671 MB / 467.7 MB, free: 1.094 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00098/0.3175, allocations: 75.53 kB / 467.8 MB, free: 1.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.327e-05/0.3176, allocations: 23.98 kB / 467.8 MB, free: 0.9961 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.001236/0.3188, allocations: 0.6537 MB / 468.4 MB, free: 340 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003458/0.3191, allocations: 194.7 kB / 468.6 MB, free: 144 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003143/0.3195, allocations: 226.6 kB / 468.9 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.94e-06/0.3195, allocations: 12.03 kB / 468.9 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.3195, allocations: 128 / 468.9 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.3195, allocations: 4 kB / 468.9 MB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003765/0.3232, allocations: 1.912 MB / 470.8 MB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-06/0.3232, allocations: 8.062 kB / 470.8 MB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004058/0.3236, allocations: 87.81 kB / 470.9 MB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002002/0.3238, allocations: 56.81 kB / 470.9 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.081e-05/0.3239, allocations: 8 kB / 470.9 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001641/0.3255, allocations: 1.625 MB / 472.6 MB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3255, allocations: 0 / 472.6 MB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002012/0.3275, allocations: 0.9962 MB / 473.6 MB, free: 11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001004/0.3285, allocations: 374.6 kB / 473.9 MB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001772/0.3287, allocations: 8 kB / 473.9 MB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005341/0.3292, allocations: 56.19 kB / 474 MB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.3294, allocations: 43.88 kB / 474 MB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.921e-05/0.3294, allocations: 15.98 kB / 474.1 MB, free: 10.52 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003245/0.3326, allocations: 2.255 MB / 476.3 MB, free: 8.242 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3326, allocations: 0 / 476.3 MB, free: 8.242 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009446/0.3336, allocations: 267.5 kB / 476.6 MB, free: 7.98 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.004223/0.3378, allocations: 1.926 MB / 478.5 MB, free: 6.234 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001401/0.3392, allocations: 0.5892 MB / 479.1 MB, free: 5.633 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/0.3392, allocations: 8.25 kB / 479.1 MB, free: 5.625 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006623/0.3399, allocations: 350.4 kB / 479.4 MB, free: 5.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001534/0.3414, allocations: 287.3 kB / 479.7 MB, free: 4.992 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03251/0.3739, allocations: 19.74 MB / 499.5 MB, free: 0.9414 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00108/0.375, allocations: 0.9121 MB / 0.4886 GB, free: 0 / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008065/0.3758, allocations: 303.2 kB / 0.4889 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008673/0.3767, allocations: 0.6438 MB / 0.4896 GB, free: 15.05 MB / 414.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3767, allocations: 0 / 0.4896 GB, free: 15.05 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08931/0.466, allocations: 38.44 MB / 0.5271 GB, free: 8.887 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.08/14.54, allocations: 7.938 kB / 0.5271 GB, free: 8.879 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: 17.69802702299785]