Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.001938/0.001938, allocations: 109.4 kB / 20.43 MB, free: 1.473 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.002422/0.002422, allocations: 213.7 kB / 23.74 MB, free: 4.688 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.445/1.445, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.CCCVcharging,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 51.92 kB / 377.8 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2567/0.2582, allocations: 53.36 MB / 431.1 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005831/0.2641, allocations: 4.075 MB / 435.2 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003698/0.2678, allocations: 2.103 MB / 437.3 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003896/0.2682, allocations: 11.94 kB / 437.3 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001321/0.2695, allocations: 0.5876 MB / 437.9 MB, free: 76 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007532/0.2702, allocations: 394 kB / 438.3 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006932/0.2709, allocations: 295 kB / 438.6 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001271/0.2722, allocations: 0.9897 MB / 439.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004124/0.2726, allocations: 225 kB / 439.8 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004958/0.2731, allocations: 402.7 kB / 440.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006351/0.2737, allocations: 0.51 MB / 440.7 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001155/0.2739, allocations: 80 kB / 440.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002616/0.2741, allocations: 132 kB / 440.9 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003944/0.2745, allocations: 486.6 kB / 441.4 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000572/0.2751, allocations: 0.6251 MB / 442 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001876/0.277, allocations: 1.775 MB / 443.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.277, allocations: 0 / 443.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.277, allocations: 0 / 443.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.859e-05/0.277, allocations: 0 / 443.8 MB, free: 10.19 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.003168/0.2802, allocations: 1.792 MB / 445.6 MB, free: 8.352 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/0.2802, allocations: 16.02 kB / 445.6 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001219/0.2803, allocations: 90.72 kB / 445.7 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002751/0.2806, allocations: 175.8 kB / 445.8 MB, free: 8.066 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001912/0.2825, allocations: 1.126 MB / 447 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000174/0.2827, allocations: 177.8 kB / 447.1 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.59e-05/0.2828, allocations: 51.95 kB / 447.2 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001171/0.2839, allocations: 0.6673 MB / 447.9 MB, free: 5.941 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.284, allocations: 0 / 447.9 MB, free: 5.941 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.512e-05/0.284, allocations: 24 kB / 447.9 MB, free: 5.918 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.584e-05/0.284, allocations: 16 kB / 447.9 MB, free: 5.902 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007912/0.2848, allocations: 431.7 kB / 448.3 MB, free: 5.477 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004428/0.2893, allocations: 2.828 MB / 451.1 MB, free: 2.551 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001001/0.2903, allocations: 395.3 kB / 451.5 MB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000641/0.2909, allocations: 286.3 kB / 451.8 MB, free: 1.875 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.598e-05/0.2909, allocations: 7.984 kB / 451.8 MB, free: 1.867 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.933e-05/0.291, allocations: 42.56 kB / 451.9 MB, free: 1.816 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.074e-06/0.291, allocations: 0 / 451.9 MB, free: 1.816 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001869/0.2928, allocations: 0.7047 MB / 452.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001688/0.293, allocations: 269 kB / 452.8 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002945/0.296, allocations: 2.242 MB / 455.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.033e-05/0.296, allocations: 33.7 kB / 455.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000603/0.2966, allocations: 0.6435 MB / 455.7 MB, free: 13.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001136/0.2967, allocations: 115 kB / 455.9 MB, free: 13.72 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001513/0.2969, allocations: 86 kB / 455.9 MB, free: 13.63 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.297, allocations: 321.9 kB / 456.3 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003582/0.2974, allocations: 160.7 kB / 456.4 MB, free: 13.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004595/0.2978, allocations: 304.5 kB / 456.7 MB, free: 12.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007126/0.2986, allocations: 397.3 kB / 457.1 MB, free: 12.38 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.2986, allocations: 0 / 457.1 MB, free: 12.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001497/0.3001, allocations: 0.6453 MB / 457.7 MB, free: 11.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.489e-05/0.3001, allocations: 14.53 kB / 457.8 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.3001, allocations: 4 kB / 457.8 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003327/0.3004, allocations: 64.81 kB / 457.8 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003856/0.3008, allocations: 96 kB / 457.9 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001962/0.3028, allocations: 1.667 MB / 459.6 MB, free: 9.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006683/0.3034, allocations: 51.72 kB / 459.6 MB, free: 9.719 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.93e-05/0.3035, allocations: 12 kB / 459.7 MB, free: 9.707 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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.000819/0.3043, allocations: 497.5 kB / 460.1 MB, free: 9.211 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002546/0.3045, allocations: 143.1 kB / 460.3 MB, free: 9.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002355/0.3048, allocations: 165.5 kB / 460.4 MB, free: 8.902 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.3048, allocations: 4 kB / 460.4 MB, free: 8.898 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.3048, allocations: 0 / 460.4 MB, free: 8.898 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.3048, allocations: 3.984 kB / 460.4 MB, free: 8.895 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002972/0.3078, allocations: 1.629 MB / 462.1 MB, free: 7.199 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.3078, allocations: 4 kB / 462.1 MB, free: 7.195 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003405/0.3081, allocations: 71.89 kB / 462.1 MB, free: 7.125 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002133/0.3083, allocations: 52.89 kB / 462.2 MB, free: 7.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.144e-05/0.3084, allocations: 15.98 kB / 462.2 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001654/0.31, allocations: 1.621 MB / 463.8 MB, free: 5.316 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/0.31, allocations: 3.938 kB / 463.8 MB, free: 5.312 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001599/0.3116, allocations: 0.7983 MB / 464.6 MB, free: 4.488 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006849/0.3123, allocations: 266.9 kB / 464.9 MB, free: 4.227 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001238/0.3124, allocations: 8 kB / 464.9 MB, free: 4.219 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004558/0.3129, allocations: 47.95 kB / 465 MB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.643e-05/0.313, allocations: 35.94 kB / 465 MB, free: 4.137 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.371e-05/0.313, allocations: 8 kB / 465 MB, free: 4.129 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002287/0.3153, allocations: 1.612 MB / 466.6 MB, free: 2.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3153, allocations: 0 / 466.6 MB, free: 2.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008595/0.3162, allocations: 203.7 kB / 466.8 MB, free: 2.32 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,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 (26): * Single equations (assignments): 25 * 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.003478/0.3196, allocations: 1.718 MB / 468.5 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001096/0.3207, allocations: 494.8 kB / 469 MB, free: 268 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/0.3207, allocations: 3.906 kB / 469 MB, free: 264 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005679/0.3213, allocations: 311 kB / 469.3 MB, free: 15.94 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001067/0.3224, allocations: 216 kB / 469.5 MB, free: 15.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02065/0.343, allocations: 13.9 MB / 483.4 MB, free: 1.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001015/0.344, allocations: 1.26 MB / 484.7 MB, free: 312 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005459/0.3446, allocations: 219.8 kB / 484.9 MB, free: 88 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006428/0.3452, allocations: 483.3 kB / 485.4 MB, free: 15.61 MB / 398.1 MB Notification: Performance of SimCode: time 1.362e-06/0.3452, allocations: 0 / 485.4 MB, free: 15.61 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07331/0.4185, allocations: 28.42 MB / 0.5017 GB, free: 3.383 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.02/15.44, allocations: 7.812 kB / 0.5018 GB, free: 3.379 MB / 414.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_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_CCCVcharging.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.374453833999723]