Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.001676/0.001676, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.00169/0.00169, allocations: 210.6 kB / 23.73 MB, free: 4.387 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.454/1.454, allocations: 230.6 MB / 257.5 MB, free: 7.75 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_Cell,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001593/0.001593, allocations: 47.94 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2793/0.2809, allocations: 53.38 MB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.008431/0.2893, allocations: 4.964 MB / 436 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004169/0.2935, allocations: 1.789 MB / 437.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005323/0.294, allocations: 15.88 kB / 437.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001215/0.2952, allocations: 0.5096 MB / 438.4 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001004/0.2962, allocations: 394 kB / 438.7 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009461/0.2972, allocations: 374.3 kB / 439.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001207/0.2984, allocations: 0.8965 MB / 440 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004432/0.2988, allocations: 225.3 kB / 440.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004681/0.2993, allocations: 370.8 kB / 440.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005502/0.2999, allocations: 422.3 kB / 441 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000115/0.3, allocations: 84 kB / 441.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002337/0.3002, allocations: 120 kB / 441.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004975/0.3007, allocations: 0.5843 MB / 441.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006391/0.3013, allocations: 0.5512 MB / 442.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002464/0.3038, allocations: 2.159 MB / 444.5 MB, free: 9.168 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3038, allocations: 0 / 444.5 MB, free: 9.168 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.3038, allocations: 0 / 444.5 MB, free: 9.168 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.429e-05/0.3038, allocations: 0 / 444.5 MB, free: 9.168 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003813/0.3077, allocations: 2.073 MB / 446.6 MB, free: 7.055 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.3077, allocations: 12.03 kB / 446.6 MB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001145/0.3078, allocations: 90.7 kB / 446.7 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002803/0.3081, allocations: 199.7 kB / 446.9 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002604/0.3107, allocations: 1.451 MB / 448.3 MB, free: 5.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001195/0.3108, allocations: 88.41 kB / 448.4 MB, free: 5.168 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.073e-05/0.3109, allocations: 52 kB / 448.4 MB, free: 5.117 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00123/0.3121, allocations: 0.8364 MB / 449.3 MB, free: 4.172 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.3121, allocations: 4 kB / 449.3 MB, free: 4.168 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.762e-05/0.3122, allocations: 20 kB / 449.3 MB, free: 4.148 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.761e-05/0.3122, allocations: 12 kB / 449.3 MB, free: 4.137 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007434/0.313, allocations: 347.8 kB / 449.7 MB, free: 3.797 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00474/0.3177, allocations: 2.946 MB / 452.6 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001087/0.3188, allocations: 349.4 kB / 452.9 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000467/0.3193, allocations: 172.8 kB / 453.1 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.722e-05/0.3193, allocations: 0 / 453.1 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.306e-05/0.3193, allocations: 38.56 kB / 453.2 MB, free: 172 kB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 4.789e-06/0.3193, allocations: 3.984 kB / 453.2 MB, free: 168 kB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001911/0.3212, allocations: 0.6263 MB / 453.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001321/0.3214, allocations: 213.6 kB / 454 MB, free: 15.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004044/0.3254, allocations: 2.904 MB / 456.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.208e-05/0.3255, allocations: 33.7 kB / 456.9 MB, free: 12.28 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008386/0.3263, allocations: 0.7938 MB / 457.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.258e-05/0.3264, allocations: 75.39 kB / 457.8 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001314/0.3265, allocations: 69.97 kB / 457.9 MB, free: 11.33 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.3267, allocations: 318 kB / 458.2 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00037/0.3271, allocations: 124.6 kB / 458.3 MB, free: 10.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006092/0.3277, allocations: 446.9 kB / 458.7 MB, free: 10.35 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007576/0.3284, allocations: 356 kB / 459.1 MB, free: 9.953 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/0.3285, allocations: 4 kB / 459.1 MB, free: 9.949 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001494/0.3299, allocations: 0.567 MB / 459.6 MB, free: 9.375 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/0.33, allocations: 4 kB / 459.7 MB, free: 9.371 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.33, allocations: 4 kB / 459.7 MB, free: 9.367 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000311/0.3303, allocations: 61 kB / 459.7 MB, free: 9.305 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003014/0.3306, allocations: 75.84 kB / 459.8 MB, free: 9.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002004/0.3326, allocations: 1.617 MB / 461.4 MB, free: 7.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007071/0.3333, allocations: 63.7 kB / 461.5 MB, free: 7.438 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.085e-05/0.3333, allocations: 15.94 kB / 461.5 MB, free: 7.422 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.0009207/0.3343, allocations: 0.5795 MB / 462.1 MB, free: 6.832 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003926/0.3347, allocations: 170.9 kB / 462.2 MB, free: 6.664 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001463/0.3361, allocations: 0.5171 MB / 462.7 MB, free: 6.141 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.3361, allocations: 4.125 kB / 462.8 MB, free: 6.137 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.3361, allocations: 4 kB / 462.8 MB, free: 6.133 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.3361, allocations: 0 / 462.8 MB, free: 6.133 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003669/0.3398, allocations: 1.5 MB / 464.3 MB, free: 4.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.3398, allocations: 0 / 464.3 MB, free: 4.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002382/0.34, allocations: 43.97 kB / 464.3 MB, free: 4.527 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001829/0.3402, allocations: 48.77 kB / 464.3 MB, free: 4.477 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.857e-05/0.3403, allocations: 11.98 kB / 464.4 MB, free: 4.465 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001675/0.3419, allocations: 1.562 MB / 465.9 MB, free: 2.789 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.3419, allocations: 4.031 kB / 465.9 MB, free: 2.785 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001674/0.3436, allocations: 0.7081 MB / 466.6 MB, free: 2.051 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007934/0.3444, allocations: 318.8 kB / 466.9 MB, free: 1.738 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002266/0.3446, allocations: 4 kB / 466.9 MB, free: 1.734 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005122/0.3451, allocations: 47.95 kB / 467 MB, free: 1.688 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.569e-05/0.3452, allocations: 27.95 kB / 467 MB, free: 1.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.901e-05/0.3452, allocations: 8 kB / 467 MB, free: 1.652 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003476/0.3487, allocations: 2.079 MB / 469.1 MB, free: 15.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3487, allocations: 0 / 469.1 MB, free: 15.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009332/0.3497, allocations: 199.7 kB / 469.3 MB, free: 15.36 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003389/0.353, allocations: 1.539 MB / 470.8 MB, free: 13.94 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001149/0.3542, allocations: 430.5 kB / 471.3 MB, free: 13.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.3542, allocations: 0 / 471.3 MB, free: 13.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005763/0.3548, allocations: 279.1 kB / 471.5 MB, free: 13.22 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001306/0.3561, allocations: 209.3 kB / 471.7 MB, free: 13.01 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03057/0.3867, allocations: 17.53 MB / 489.3 MB, free: 11.15 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001133/0.3878, allocations: 0.7629 MB / 490 MB, free: 10.35 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006188/0.3884, allocations: 254.8 kB / 490.3 MB, free: 10.09 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000858/0.3893, allocations: 0.5774 MB / 490.9 MB, free: 9.516 MB / 398.1 MB Notification: Performance of SimCode: time 1.453e-06/0.3893, allocations: 0 / 490.9 MB, free: 9.516 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1006/0.4899, allocations: 34.61 MB / 0.5132 GB, free: 7.141 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.15/14.64, allocations: 6.219 kB / 0.5132 GB, free: 7.141 MB / 430.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_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_Cell.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.530303066130728]