Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.001396/0.001396, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001885/0.001885, allocations: 205.2 kB / 23.72 MB, free: 4.391 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.412/1.412, allocations: 230.5 MB / 257.4 MB, free: 7.758 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_Cell,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001935, allocations: 63.89 kB / 377.7 MB, free: 2.793 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.2548, allocations: 53.41 MB / 431.1 MB, free: 6.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007107/0.2619, allocations: 4.964 MB / 436.1 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003386/0.2653, allocations: 1.796 MB / 437.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003907/0.2657, allocations: 15.88 kB / 437.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001108/0.2668, allocations: 0.5135 MB / 438.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007081/0.2675, allocations: 390 kB / 438.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007645/0.2683, allocations: 378.5 kB / 439.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00104/0.2693, allocations: 0.8965 MB / 440.1 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004213/0.2697, allocations: 221.3 kB / 440.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000445/0.2702, allocations: 374.8 kB / 440.6 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005229/0.2707, allocations: 418.3 kB / 441.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001104/0.2708, allocations: 80 kB / 441.1 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002146/0.271, allocations: 120 kB / 441.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004755/0.2715, allocations: 0.5882 MB / 441.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004978/0.272, allocations: 0.5512 MB / 442.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002045/0.274, allocations: 2.148 MB / 444.5 MB, free: 8.949 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.274, allocations: 0 / 444.5 MB, free: 8.949 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.274, allocations: 4 kB / 444.5 MB, free: 8.945 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.607e-05/0.2741, allocations: 0 / 444.5 MB, free: 8.945 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.003617/0.2777, allocations: 2.081 MB / 446.6 MB, free: 6.824 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/0.2777, allocations: 15.98 kB / 446.6 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001239/0.2779, allocations: 90.7 kB / 446.7 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003167/0.2782, allocations: 195.7 kB / 446.9 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002615/0.2808, allocations: 1.447 MB / 448.4 MB, free: 5.043 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001286/0.2809, allocations: 96.53 kB / 448.5 MB, free: 4.934 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.992e-05/0.281, allocations: 51.98 kB / 448.5 MB, free: 4.883 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001223/0.2822, allocations: 0.8325 MB / 449.3 MB, free: 3.945 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.921e-05/0.2822, allocations: 4 kB / 449.3 MB, free: 3.941 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.674e-05/0.2823, allocations: 20 kB / 449.4 MB, free: 3.922 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.725e-05/0.2823, allocations: 15.98 kB / 449.4 MB, free: 3.906 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00073/0.283, allocations: 343.8 kB / 449.7 MB, free: 3.566 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004869/0.2879, allocations: 2.938 MB / 452.7 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001103/0.289, allocations: 353.9 kB / 453 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000489/0.2895, allocations: 184.2 kB / 453.2 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.115e-05/0.2895, allocations: 0 / 453.2 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.438e-05/0.2896, allocations: 42.5 kB / 453.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.243e-06/0.2896, allocations: 4 kB / 453.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001899/0.2915, allocations: 0.6224 MB / 453.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001336/0.2916, allocations: 209.6 kB / 454.1 MB, free: 15.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004112/0.2957, allocations: 2.908 MB / 457 MB, free: 12.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.623e-05/0.2958, allocations: 29.7 kB / 457 MB, free: 12.05 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008417/0.2966, allocations: 0.7938 MB / 457.8 MB, free: 11.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.688e-05/0.2967, allocations: 79.39 kB / 457.9 MB, free: 11.17 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001285/0.2968, allocations: 69.97 kB / 457.9 MB, free: 11.1 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.297, allocations: 322 kB / 458.2 MB, free: 10.78 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003467/0.2973, allocations: 116.6 kB / 458.4 MB, free: 10.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005758/0.2979, allocations: 454 kB / 458.8 MB, free: 10.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007525/0.2986, allocations: 350.3 kB / 459.1 MB, free: 9.723 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.2986, allocations: 4 kB / 459.1 MB, free: 9.719 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001396/0.3, allocations: 0.5712 MB / 459.7 MB, free: 9.137 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.3001, allocations: 4 kB / 459.7 MB, free: 9.133 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.3001, allocations: 4 kB / 459.7 MB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003053/0.3004, allocations: 60.81 kB / 459.8 MB, free: 9.066 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002912/0.3007, allocations: 75.83 kB / 459.9 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001821/0.3025, allocations: 1.613 MB / 461.5 MB, free: 7.266 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005499/0.303, allocations: 59.7 kB / 461.5 MB, free: 7.207 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.865e-05/0.3031, allocations: 20.28 kB / 461.6 MB, free: 7.188 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.0009267/0.304, allocations: 0.5724 MB / 462.1 MB, free: 6.605 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002616/0.3043, allocations: 182.8 kB / 462.3 MB, free: 6.426 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001214/0.3055, allocations: 0.5065 MB / 462.8 MB, free: 5.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.3055, allocations: 4 kB / 462.8 MB, free: 5.906 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.3055, allocations: 4 kB / 462.8 MB, free: 5.902 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.3055, allocations: 0 / 462.8 MB, free: 5.902 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002949/0.3084, allocations: 1.497 MB / 464.3 MB, free: 4.344 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.3084, allocations: 0 / 464.3 MB, free: 4.344 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002225/0.3087, allocations: 44 kB / 464.4 MB, free: 4.301 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001698/0.3088, allocations: 48.83 kB / 464.4 MB, free: 4.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.366e-05/0.3089, allocations: 11.92 kB / 464.4 MB, free: 4.238 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001612/0.3105, allocations: 1.562 MB / 466 MB, free: 2.562 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.3105, allocations: 4.031 kB / 466 MB, free: 2.559 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001746/0.3122, allocations: 0.7114 MB / 466.7 MB, free: 1.824 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009052/0.3131, allocations: 314.8 kB / 467 MB, free: 1.516 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001316/0.3133, allocations: 11.94 kB / 467 MB, free: 1.504 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004302/0.3137, allocations: 39.95 kB / 467.1 MB, free: 1.465 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001216/0.3138, allocations: 31.95 kB / 467.1 MB, free: 1.434 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.898e-05/0.3138, allocations: 11.94 kB / 467.1 MB, free: 1.422 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003119/0.3169, allocations: 2.075 MB / 469.2 MB, free: 15.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3169, allocations: 0 / 469.2 MB, free: 15.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008143/0.3178, allocations: 203.7 kB / 469.4 MB, free: 15.12 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.003353/0.3211, allocations: 1.529 MB / 470.9 MB, free: 13.69 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001238/0.3224, allocations: 430.6 kB / 471.3 MB, free: 13.25 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.293e-06/0.3224, allocations: 3.938 kB / 471.3 MB, free: 13.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005711/0.3229, allocations: 271.1 kB / 471.6 MB, free: 12.97 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001569/0.3245, allocations: 226.1 kB / 471.8 MB, free: 12.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02877/0.3533, allocations: 17.53 MB / 489.3 MB, free: 10.89 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009364/0.3542, allocations: 0.7668 MB / 490.1 MB, free: 10.08 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000681/0.3549, allocations: 242.8 kB / 490.3 MB, free: 9.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008854/0.3558, allocations: 0.5774 MB / 490.9 MB, free: 9.262 MB / 398.1 MB Notification: Performance of SimCode: time 2.315e-06/0.3558, allocations: 3.938 kB / 490.9 MB, free: 9.258 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0964/0.4522, allocations: 34.58 MB / 0.5132 GB, free: 6.82 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.65/15.1, allocations: 17.7 kB / 0.5132 GB, free: 6.809 MB / 430.1 MB " [Timeout remaining time 645] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.921406933106482]