Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001923/0.001923, allocations: 103.6 kB / 20.43 MB, free: 1.211 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001776/0.001776, allocations: 184.7 kB / 23.71 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 47.92 kB / 370.4 MB, free: 9.727 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2633, allocations: 52.18 MB / 422.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.00765/0.2709, allocations: 5.363 MB / 427.9 MB, free: 9.035 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003852/0.2748, allocations: 2.018 MB / 429.9 MB, free: 7.012 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004742/0.2752, allocations: 19.88 kB / 430 MB, free: 6.992 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001647/0.2769, allocations: 0.6069 MB / 430.6 MB, free: 6.383 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000821/0.2777, allocations: 425.8 kB / 431 MB, free: 5.965 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008435/0.2785, allocations: 405.1 kB / 431.4 MB, free: 5.574 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0015/0.28, allocations: 1.306 MB / 432.7 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005537/0.2806, allocations: 294.2 kB / 433 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006573/0.2813, allocations: 0.5023 MB / 433.5 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007311/0.282, allocations: 0.5604 MB / 434 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001642/0.2822, allocations: 116 kB / 434.1 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003261/0.2825, allocations: 183.9 kB / 434.3 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005456/0.283, allocations: 0.6544 MB / 435 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006905/0.2837, allocations: 0.6641 MB / 435.6 MB, free: 1.277 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002659/0.2864, allocations: 2.654 MB / 438.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2864, allocations: 4 kB / 438.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2864, allocations: 4 kB / 438.3 MB, free: 14.6 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.887e-05/0.2864, allocations: 0 / 438.3 MB, free: 14.6 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.004117/0.2905, allocations: 2.35 MB / 440.7 MB, free: 12.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.2906, allocations: 15.97 kB / 440.7 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000141/0.2907, allocations: 110.7 kB / 440.8 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003134/0.291, allocations: 223.5 kB / 441 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002752/0.2938, allocations: 1.636 MB / 442.6 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001866/0.294, allocations: 185.8 kB / 442.8 MB, free: 9.949 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.722e-05/0.2941, allocations: 60 kB / 442.9 MB, free: 9.891 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001675/0.2957, allocations: 1.173 MB / 444.1 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.698e-05/0.2957, allocations: 0 / 444.1 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.478e-05/0.2958, allocations: 32 kB / 444.1 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.646e-05/0.2958, allocations: 16 kB / 444.1 MB, free: 8.531 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001068/0.2969, allocations: 0.5477 MB / 444.6 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00573/0.3026, allocations: 3.614 MB / 448.3 MB, free: 4.246 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001314/0.3039, allocations: 0.4915 MB / 448.8 MB, free: 3.746 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007693/0.3047, allocations: 345.5 kB / 449.1 MB, free: 3.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.465e-05/0.3047, allocations: 4.281 kB / 449.1 MB, free: 3.406 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.928e-05/0.3048, allocations: 42.78 kB / 449.1 MB, free: 3.355 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.104e-06/0.3048, allocations: 0 / 449.1 MB, free: 3.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002328/0.3071, allocations: 0.8777 MB / 450 MB, free: 2.469 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001669/0.3073, allocations: 265 kB / 450.3 MB, free: 2.148 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00432/0.3116, allocations: 3.152 MB / 453.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.056e-05/0.3117, allocations: 33.7 kB / 453.5 MB, free: 14.92 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008821/0.3126, allocations: 0.8653 MB / 454.3 MB, free: 14.05 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001292/0.3127, allocations: 126.9 kB / 454.4 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001727/0.3129, allocations: 94.14 kB / 454.5 MB, free: 13.83 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.313, allocations: 322 kB / 454.9 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004914/0.3135, allocations: 212.9 kB / 455.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007745/0.3143, allocations: 0.5928 MB / 455.7 MB, free: 12.58 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.3153, allocations: 0.5128 MB / 456.2 MB, free: 12.02 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.3153, allocations: 4 kB / 456.2 MB, free: 12.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001685/0.317, allocations: 0.7778 MB / 456.9 MB, free: 11.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.317, allocations: 8 kB / 457 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.317, allocations: 4 kB / 457 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003101/0.3173, allocations: 69 kB / 457 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004616/0.3178, allocations: 111.9 kB / 457.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001925/0.3197, allocations: 1.683 MB / 458.8 MB, free: 9.242 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006905/0.3204, allocations: 79.53 kB / 458.9 MB, free: 9.164 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.799e-05/0.3204, allocations: 20.11 kB / 458.9 MB, free: 9.145 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.001035/0.3215, allocations: 0.6537 MB / 459.6 MB, free: 8.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002942/0.3218, allocations: 206.8 kB / 459.8 MB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003171/0.3221, allocations: 214.5 kB / 460 MB, free: 8.066 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.3221, allocations: 4 kB / 460 MB, free: 8.062 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.3221, allocations: 0 / 460 MB, free: 8.062 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.3221, allocations: 0 / 460 MB, free: 8.062 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003589/0.3257, allocations: 1.912 MB / 461.9 MB, free: 6.086 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.3257, allocations: 0 / 461.9 MB, free: 6.086 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003955/0.3261, allocations: 91.81 kB / 462 MB, free: 5.996 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001832/0.3263, allocations: 52.83 kB / 462 MB, free: 5.941 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.139e-05/0.3263, allocations: 12.05 kB / 462 MB, free: 5.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001669/0.328, allocations: 1.629 MB / 463.7 MB, free: 4.191 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.328, allocations: 0 / 463.7 MB, free: 4.191 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00192/0.3299, allocations: 0.9802 MB / 464.7 MB, free: 3.184 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009537/0.3309, allocations: 370.7 kB / 465 MB, free: 2.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001716/0.331, allocations: 12 kB / 465 MB, free: 2.809 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005385/0.3316, allocations: 63.94 kB / 465.1 MB, free: 2.746 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.3317, allocations: 35.94 kB / 465.1 MB, free: 2.711 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.412e-05/0.3317, allocations: 8 kB / 465.1 MB, free: 2.703 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003244/0.3349, allocations: 2.251 MB / 467.4 MB, free: 444 kB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3349, allocations: 0 / 467.4 MB, free: 444 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.00104/0.336, allocations: 263.5 kB / 467.6 MB, free: 180 kB / 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.004378/0.3404, allocations: 1.946 MB / 469.6 MB, free: 14.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001459/0.3418, allocations: 0.5928 MB / 470.2 MB, free: 13.81 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.3418, allocations: 4 kB / 470.2 MB, free: 13.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006798/0.3425, allocations: 351.2 kB / 470.5 MB, free: 13.45 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001414/0.3439, allocations: 290.5 kB / 470.8 MB, free: 13.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03047/0.3744, allocations: 19.75 MB / 490.6 MB, free: 9.094 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001141/0.3755, allocations: 0.9081 MB / 491.5 MB, free: 8.156 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007413/0.3763, allocations: 295.2 kB / 491.8 MB, free: 7.863 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008813/0.3771, allocations: 0.6438 MB / 492.4 MB, free: 7.219 MB / 398.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3771, allocations: 0 / 492.4 MB, free: 7.219 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08913/0.4663, allocations: 38.22 MB / 0.5182 GB, free: 1.262 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.32/14.78, allocations: 6.391 kB / 0.5182 GB, free: 1.258 MB / 430.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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_4.0.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.649921047966927]