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.0008308/0.0008308, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009017/0.0009017, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.9545/0.9545, allocations: 173.4 MB / 200.4 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] 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 1.974e-06/1.974e-06, allocations: 0 / 318.4 MB, free: 6.387 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.382e-05/1.579e-05, allocations: 6.219 kB / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.004304/0.00432, allocations: 4.911 MB / 323.3 MB, free: 1.438 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001834/0.006154, allocations: 1.644 MB / 325 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002414/0.006395, allocations: 19.88 kB / 325 MB, free: 15.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007814/0.007177, allocations: 0.5133 MB / 325.5 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004652/0.007642, allocations: 361.9 kB / 325.9 MB, free: 14.9 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005211/0.008163, allocations: 366.3 kB / 326.2 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007049/0.008868, allocations: 0.9195 MB / 327.1 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003052/0.009173, allocations: 225.3 kB / 327.4 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004362/0.009609, allocations: 0.5146 MB / 327.9 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003135/0.009923, allocations: 375 kB / 328.2 MB, free: 12.51 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.866e-05/0.009992, allocations: 76 kB / 328.3 MB, free: 12.44 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001362/0.01013, allocations: 119.9 kB / 328.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003199/0.01045, allocations: 0.6 MB / 329 MB, free: 11.72 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005671/0.01101, allocations: 422.7 kB / 329.4 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0012/0.01222, allocations: 2.068 MB / 331.5 MB, free: 9.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.01222, allocations: 0 / 331.5 MB, free: 9.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.91e-07/0.01222, allocations: 0 / 331.5 MB, free: 9.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.482e-05/0.01223, allocations: 0 / 331.5 MB, free: 9.23 MB / 298.7 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.002107/0.01434, allocations: 2.053 MB / 333.6 MB, free: 7.141 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.01438, allocations: 12.92 kB / 333.6 MB, free: 7.129 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.242e-05/0.01445, allocations: 86.7 kB / 333.7 MB, free: 7.035 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001617/0.01461, allocations: 195.7 kB / 333.9 MB, free: 6.844 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001437/0.01605, allocations: 1.442 MB / 335.3 MB, free: 5.371 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001074/0.01616, allocations: 92.72 kB / 335.4 MB, free: 5.266 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.839e-05/0.01622, allocations: 48 kB / 335.4 MB, free: 5.219 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007692/0.01698, allocations: 0.8403 MB / 336.3 MB, free: 4.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.017, allocations: 0 / 336.3 MB, free: 4.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.279e-05/0.01703, allocations: 24 kB / 336.3 MB, free: 4.246 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.01704, allocations: 12 kB / 336.3 MB, free: 4.234 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004548/0.0175, allocations: 339.8 kB / 336.6 MB, free: 3.902 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002773/0.02027, allocations: 2.919 MB / 339.6 MB, free: 0.8633 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006274/0.0209, allocations: 369 kB / 339.9 MB, free: 0.5 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006111/0.02151, allocations: 168.8 kB / 340.1 MB, free: 340 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.124e-05/0.02154, allocations: 4 kB / 340.1 MB, free: 336 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.697e-05/0.02157, allocations: 34.56 kB / 340.1 MB, free: 292 kB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.292e-06/0.02157, allocations: 0 / 340.1 MB, free: 292 kB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001072/0.02264, allocations: 0.633 MB / 340.8 MB, free: 15.64 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.613e-05/0.02272, allocations: 209.6 kB / 341 MB, free: 15.39 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002234/0.02495, allocations: 2.9 MB / 343.9 MB, free: 12.45 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.323e-05/0.02497, allocations: 37.64 kB / 343.9 MB, free: 12.4 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004906/0.02546, allocations: 0.786 MB / 344.7 MB, free: 11.61 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.194e-05/0.02552, allocations: 75.38 kB / 344.8 MB, free: 11.54 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.487e-05/0.0256, allocations: 69.98 kB / 344.8 MB, free: 11.46 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.0257, allocations: 318 kB / 345.1 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001864/0.02589, allocations: 124.6 kB / 345.3 MB, free: 11.02 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003144/0.0262, allocations: 442.9 kB / 345.7 MB, free: 10.48 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004208/0.02662, allocations: 368.8 kB / 346 MB, free: 10.07 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.02663, allocations: 0 / 346 MB, free: 10.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006658/0.02729, allocations: 0.5671 MB / 346.6 MB, free: 9.496 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.02731, allocations: 4 kB / 346.6 MB, free: 9.492 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.02731, allocations: 4.438 kB / 346.6 MB, free: 9.488 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001934/0.02751, allocations: 60.83 kB / 346.7 MB, free: 9.426 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001562/0.02766, allocations: 79.81 kB / 346.8 MB, free: 9.348 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001379/0.02904, allocations: 1.613 MB / 348.4 MB, free: 7.621 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002282/0.02927, allocations: 59.7 kB / 348.4 MB, free: 7.562 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.097e-05/0.02929, allocations: 16 kB / 348.4 MB, free: 7.547 MB / 314.7 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.0004451/0.02974, allocations: 0.5758 MB / 349 MB, free: 6.961 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/0.02986, allocations: 182.8 kB / 349.2 MB, free: 6.781 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006426/0.03051, allocations: 0.5026 MB / 349.7 MB, free: 6.27 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.03051, allocations: 4 kB / 349.7 MB, free: 6.266 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-06/0.03051, allocations: 0 / 349.7 MB, free: 6.266 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.03051, allocations: 0 / 349.7 MB, free: 6.266 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001503/0.03202, allocations: 1.494 MB / 351.2 MB, free: 4.707 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.073e-06/0.03202, allocations: 0 / 351.2 MB, free: 4.707 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001187/0.03214, allocations: 47.91 kB / 351.2 MB, free: 4.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001008/0.03224, allocations: 52.8 kB / 351.3 MB, free: 4.605 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.656e-05/0.03225, allocations: 8.109 kB / 351.3 MB, free: 4.598 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008412/0.0331, allocations: 1.558 MB / 352.9 MB, free: 2.926 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.0331, allocations: 0 / 352.9 MB, free: 2.926 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007824/0.03388, allocations: 0.7189 MB / 353.6 MB, free: 2.184 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003566/0.03424, allocations: 314.8 kB / 353.9 MB, free: 1.875 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.343e-05/0.03431, allocations: 4 kB / 353.9 MB, free: 1.871 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002125/0.03452, allocations: 47.95 kB / 353.9 MB, free: 1.824 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.71e-05/0.03459, allocations: 27.95 kB / 354 MB, free: 1.797 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/0.0346, allocations: 8 kB / 354 MB, free: 1.789 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002052/0.03665, allocations: 2.063 MB / 356 MB, free: 15.7 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-08/0.03665, allocations: 0 / 356 MB, free: 15.7 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000461/0.03711, allocations: 203.7 kB / 356.2 MB, free: 15.5 MB / 330.7 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.001612/0.03873, allocations: 1.533 MB / 357.8 MB, free: 14.09 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000633/0.03936, allocations: 442.1 kB / 358.2 MB, free: 13.64 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.03936, allocations: 4.062 kB / 358.2 MB, free: 13.64 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002769/0.03964, allocations: 262.4 kB / 358.5 MB, free: 13.37 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006352/0.04027, allocations: 228.6 kB / 358.7 MB, free: 13.15 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02531/0.06558, allocations: 17.67 MB / 376.4 MB, free: 11.13 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005629/0.06615, allocations: 0.7627 MB / 377.1 MB, free: 10.33 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003472/0.06649, allocations: 241.7 kB / 377.4 MB, free: 10.09 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004813/0.06697, allocations: 0.5667 MB / 377.9 MB, free: 9.523 MB / 346.7 MB Notification: Performance of SimCode: time 1.784e-06/0.06698, allocations: 4 kB / 377.9 MB, free: 9.52 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05693/0.1239, allocations: 34.62 MB / 412.6 MB, free: 7.09 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.599/8.723, allocations: 4.062 kB / 412.6 MB, free: 7.086 MB / 378.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins/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: 10.821816106326878]