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.001821/0.001821, allocations: 112.5 kB / 20.43 MB, free: 1.453 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.001723/0.001723, allocations: 212.1 kB / 23.74 MB, free: 4.66 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.422/1.422, allocations: 230.5 MB / 257.4 MB, free: 7.988 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.001905/0.001905, allocations: 59.89 kB / 377.8 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.2687, allocations: 53.42 MB / 431.2 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.008052/0.2768, allocations: 5.59 MB / 436.8 MB, free: 1.062 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003546/0.2803, allocations: 1.908 MB / 438.7 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004436/0.2808, allocations: 23.81 kB / 438.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001209/0.282, allocations: 0.5252 MB / 439.2 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000787/0.2828, allocations: 386 kB / 439.6 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008551/0.2836, allocations: 394.5 kB / 440 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001196/0.2848, allocations: 0.8926 MB / 440.9 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000452/0.2853, allocations: 237.3 kB / 441.1 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005324/0.2858, allocations: 370.8 kB / 441.5 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006249/0.2864, allocations: 466.3 kB / 441.9 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001071/0.2865, allocations: 80 kB / 442 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002377/0.2868, allocations: 120 kB / 442.1 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005199/0.2873, allocations: 0.5843 MB / 442.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007086/0.288, allocations: 0.7493 MB / 443.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002236/0.2902, allocations: 2.136 MB / 445.6 MB, free: 8.211 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.2902, allocations: 0 / 445.6 MB, free: 8.211 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.2902, allocations: 0 / 445.6 MB, free: 8.211 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.061e-05/0.2903, allocations: 0 / 445.6 MB, free: 8.211 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.003394/0.2937, allocations: 2.073 MB / 447.7 MB, free: 6.098 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.2937, allocations: 12.03 kB / 447.7 MB, free: 6.086 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001139/0.2938, allocations: 90.7 kB / 447.8 MB, free: 5.988 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002628/0.2941, allocations: 195.7 kB / 448 MB, free: 5.797 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002487/0.2966, allocations: 1.447 MB / 449.4 MB, free: 4.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001216/0.2967, allocations: 104.5 kB / 449.5 MB, free: 4.203 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.506e-05/0.2968, allocations: 44 kB / 449.5 MB, free: 4.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001083/0.2979, allocations: 0.5854 MB / 450.1 MB, free: 3.527 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/0.2979, allocations: 7.938 kB / 450.1 MB, free: 3.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.337e-05/0.2979, allocations: 16 kB / 450.2 MB, free: 3.504 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.361e-05/0.2979, allocations: 12 kB / 450.2 MB, free: 3.492 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007426/0.2987, allocations: 351.7 kB / 450.5 MB, free: 3.148 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004812/0.3035, allocations: 3.191 MB / 453.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001072/0.3046, allocations: 356.8 kB / 454.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000458/0.305, allocations: 176.3 kB / 454.2 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.3051, allocations: 4 kB / 454.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.399e-05/0.3051, allocations: 42.5 kB / 454.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.563e-06/0.3051, allocations: 0 / 454.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001839/0.3069, allocations: 0.6262 MB / 454.9 MB, free: 14.62 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001396/0.3071, allocations: 221.5 kB / 455.1 MB, free: 14.36 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003782/0.3109, allocations: 2.897 MB / 458 MB, free: 11.41 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.955e-05/0.3109, allocations: 33.7 kB / 458 MB, free: 11.38 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007822/0.3117, allocations: 0.7939 MB / 458.8 MB, free: 10.57 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.688e-05/0.3118, allocations: 67.39 kB / 458.9 MB, free: 10.51 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001201/0.3119, allocations: 73.97 kB / 459 MB, free: 10.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.312, allocations: 326 kB / 459.3 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003405/0.3124, allocations: 112.6 kB / 459.4 MB, free: 9.996 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004894/0.3129, allocations: 292.8 kB / 459.7 MB, free: 9.641 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007146/0.3136, allocations: 358.3 kB / 460 MB, free: 9.238 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.3136, allocations: 0 / 460 MB, free: 9.238 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001215/0.3148, allocations: 0.5712 MB / 460.6 MB, free: 8.656 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.3148, allocations: 12.06 kB / 460.6 MB, free: 8.645 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.3148, allocations: 4 kB / 460.6 MB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002677/0.3151, allocations: 56.81 kB / 460.7 MB, free: 8.582 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002821/0.3154, allocations: 67.91 kB / 460.7 MB, free: 8.516 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001771/0.3171, allocations: 1.628 MB / 462.4 MB, free: 6.773 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004588/0.3176, allocations: 67.62 kB / 462.4 MB, free: 6.707 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.836e-05/0.3176, allocations: 16 kB / 462.5 MB, free: 6.691 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.0008081/0.3184, allocations: 0.5718 MB / 463 MB, free: 6.109 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002417/0.3187, allocations: 182.8 kB / 463.2 MB, free: 5.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001205/0.3199, allocations: 0.5065 MB / 463.7 MB, free: 5.414 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.3199, allocations: 0 / 463.7 MB, free: 5.414 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.3199, allocations: 0 / 463.7 MB, free: 5.414 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.3199, allocations: 4 kB / 463.7 MB, free: 5.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002918/0.3228, allocations: 1.668 MB / 465.4 MB, free: 3.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.3228, allocations: 0 / 465.4 MB, free: 3.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002374/0.323, allocations: 48 kB / 465.4 MB, free: 3.633 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001717/0.3232, allocations: 44.83 kB / 465.5 MB, free: 3.586 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.044e-05/0.3232, allocations: 4 kB / 465.5 MB, free: 3.582 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001531/0.3248, allocations: 1.562 MB / 467 MB, free: 1.906 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3248, allocations: 96 / 467 MB, free: 1.906 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001609/0.3264, allocations: 0.7344 MB / 467.8 MB, free: 1.148 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000885/0.3273, allocations: 314.7 kB / 468.1 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001415/0.3274, allocations: 15.92 kB / 468.1 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004282/0.3278, allocations: 39.95 kB / 468.1 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.3279, allocations: 35.89 kB / 468.2 MB, free: 0.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.969e-05/0.328, allocations: 8 kB / 468.2 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003778/0.3317, allocations: 2.075 MB / 470.3 MB, free: 14.64 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3317, allocations: 0 / 470.3 MB, free: 14.64 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009338/0.3327, allocations: 199.7 kB / 470.5 MB, free: 14.45 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.003461/0.3361, allocations: 1.512 MB / 472 MB, free: 13.02 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001171/0.3373, allocations: 427.2 kB / 472.4 MB, free: 12.59 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.3373, allocations: 0 / 472.4 MB, free: 12.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005774/0.3379, allocations: 262.5 kB / 472.6 MB, free: 12.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00141/0.3393, allocations: 226.7 kB / 472.9 MB, free: 12.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02704/0.3663, allocations: 17.55 MB / 490.4 MB, free: 10.22 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001195/0.3675, allocations: 1.362 MB / 491.8 MB, free: 8.828 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005559/0.3681, allocations: 238.9 kB / 492 MB, free: 8.59 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008181/0.3689, allocations: 0.5774 MB / 492.6 MB, free: 8.012 MB / 398.1 MB Notification: Performance of SimCode: time 9.91e-07/0.3689, allocations: 0 / 492.6 MB, free: 8.012 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08182/0.4507, allocations: 33.14 MB / 0.5134 GB, free: 6.984 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.32/15.77, allocations: 0 / 0.5134 GB, free: 6.984 MB / 430.1 MB " [Timeout remaining time 644] (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: 18.600692424002773]