Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.00129/0.00129, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.00129/0.00129, allocations: 183.4 kB / 23.7 MB, free: 4.414 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.428/1.428, allocations: 225.7 MB / 252.5 MB, free: 12.82 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_Cell,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001752/0.001752, allocations: 51.91 kB / 370.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2551/0.2569, allocations: 52.18 MB / 422.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007164/0.264, allocations: 4.911 MB / 427.5 MB, free: 9.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003029/0.2671, allocations: 1.645 MB / 429.1 MB, free: 7.832 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005184/0.2676, allocations: 15.88 kB / 429.1 MB, free: 7.816 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001193/0.2688, allocations: 0.5058 MB / 429.6 MB, free: 7.309 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000868/0.2697, allocations: 362.1 kB / 430 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009411/0.2706, allocations: 371 kB / 430.4 MB, free: 6.594 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001447/0.272, allocations: 0.8925 MB / 431.2 MB, free: 5.695 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004802/0.2725, allocations: 221.4 kB / 431.5 MB, free: 5.477 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005895/0.2731, allocations: 374.7 kB / 431.8 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006958/0.2738, allocations: 430.2 kB / 432.2 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001152/0.2739, allocations: 80 kB / 432.3 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002259/0.2742, allocations: 116 kB / 432.4 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000582/0.2747, allocations: 0.5921 MB / 433 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005904/0.2753, allocations: 0.5434 MB / 433.6 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002272/0.2776, allocations: 2.144 MB / 435.7 MB, free: 1.203 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.2776, allocations: 3.984 kB / 435.7 MB, free: 1.199 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2776, allocations: 0 / 435.7 MB, free: 1.199 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.989e-05/0.2776, allocations: 0 / 435.7 MB, free: 1.199 MB / 334.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.003552/0.2812, allocations: 2.066 MB / 437.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.2812, allocations: 8.031 kB / 437.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001203/0.2814, allocations: 98.7 kB / 437.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003756/0.2817, allocations: 191.7 kB / 438.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002666/0.2844, allocations: 1.447 MB / 439.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000122/0.2845, allocations: 88.41 kB / 439.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.779e-05/0.2846, allocations: 52 kB / 439.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/0.2858, allocations: 0.8364 MB / 440.5 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/0.2858, allocations: 3.938 kB / 440.5 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.734e-05/0.2859, allocations: 16 kB / 440.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.418e-05/0.2859, allocations: 12 kB / 440.5 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007354/0.2866, allocations: 347.8 kB / 440.9 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004616/0.2913, allocations: 2.926 MB / 443.8 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001115/0.2924, allocations: 358.2 kB / 444.1 MB, free: 8.449 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004763/0.2928, allocations: 168.8 kB / 444.3 MB, free: 8.281 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.1e-05/0.2929, allocations: 0 / 444.3 MB, free: 8.281 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.786e-05/0.2929, allocations: 42.5 kB / 444.4 MB, free: 8.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.683e-06/0.2929, allocations: 0 / 444.4 MB, free: 8.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.002024/0.295, allocations: 0.6263 MB / 445 MB, free: 7.594 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001504/0.2951, allocations: 213.6 kB / 445.2 MB, free: 7.336 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003919/0.299, allocations: 2.896 MB / 448.1 MB, free: 4.395 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.2e-05/0.2991, allocations: 29.7 kB / 448.1 MB, free: 4.359 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007755/0.2998, allocations: 0.7899 MB / 448.9 MB, free: 3.562 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.298e-05/0.2999, allocations: 79.38 kB / 449 MB, free: 3.484 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/0.3, allocations: 65.98 kB / 449 MB, free: 3.414 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.3002, allocations: 318 kB / 449.4 MB, free: 3.098 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003447/0.3005, allocations: 128.6 kB / 449.5 MB, free: 2.973 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005658/0.3011, allocations: 435.1 kB / 449.9 MB, free: 2.441 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00075/0.3018, allocations: 365.6 kB / 450.3 MB, free: 2.035 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.129e-06/0.3019, allocations: 4 kB / 450.3 MB, free: 2.031 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001227/0.3031, allocations: 0.5674 MB / 450.8 MB, free: 1.453 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.3031, allocations: 4 kB / 450.8 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.3031, allocations: 7.938 kB / 450.8 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002717/0.3034, allocations: 61.08 kB / 450.9 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002936/0.3037, allocations: 75.89 kB / 451 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00183/0.3055, allocations: 1.621 MB / 452.6 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005865/0.3061, allocations: 55.72 kB / 452.7 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.87e-05/0.3061, allocations: 19.98 kB / 452.7 MB, free: 15.5 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.0008453/0.307, allocations: 0.5795 MB / 453.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000266/0.3072, allocations: 170.9 kB / 453.4 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001233/0.3085, allocations: 0.5119 MB / 453.9 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.267e-06/0.3085, allocations: 0 / 453.9 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.3085, allocations: 4 kB / 453.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/0.3085, allocations: 3.984 kB / 453.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002918/0.3114, allocations: 1.49 MB / 455.4 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.3114, allocations: 4.125 kB / 455.4 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000239/0.3116, allocations: 43.97 kB / 455.5 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001686/0.3118, allocations: 52.81 kB / 455.5 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.697e-05/0.3118, allocations: 0 / 455.5 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00158/0.3134, allocations: 1.555 MB / 457.1 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3134, allocations: 0 / 457.1 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001534/0.3149, allocations: 0.7174 MB / 457.8 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008214/0.3158, allocations: 318.8 kB / 458.1 MB, free: 9.832 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001309/0.3159, allocations: 7.984 kB / 458.1 MB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004295/0.3163, allocations: 43.95 kB / 458.2 MB, free: 9.781 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.67e-05/0.3164, allocations: 39.88 kB / 458.2 MB, free: 9.742 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.972e-05/0.3164, allocations: 8 kB / 458.2 MB, free: 9.734 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0029/0.3193, allocations: 2.063 MB / 460.3 MB, free: 7.648 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3193, allocations: 0 / 460.3 MB, free: 7.648 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007831/0.3201, allocations: 199.7 kB / 460.5 MB, free: 7.453 MB / 366.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.003132/0.3233, allocations: 1.54 MB / 462 MB, free: 6.039 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001074/0.3243, allocations: 433.4 kB / 462.4 MB, free: 5.605 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3243, allocations: 0 / 462.4 MB, free: 5.605 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005558/0.3249, allocations: 263.2 kB / 462.7 MB, free: 5.336 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001147/0.326, allocations: 229.1 kB / 462.9 MB, free: 5.109 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02857/0.3546, allocations: 17.5 MB / 480.4 MB, free: 3.273 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009614/0.3556, allocations: 0.7627 MB / 481.2 MB, free: 2.473 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006299/0.3562, allocations: 241.7 kB / 481.4 MB, free: 2.234 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008644/0.3571, allocations: 0.5696 MB / 482 MB, free: 1.664 MB / 382.1 MB Notification: Performance of SimCode: time 7.02e-07/0.3571, allocations: 0 / 482 MB, free: 1.664 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0791/0.4362, allocations: 34.54 MB / 0.5044 GB, free: 15.36 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.94/14.37, allocations: 0 / 0.5044 GB, free: 15.36 MB / 430.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.24392110807821]