Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.001177/0.001177, allocations: 80.36 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009377/0.0009377, allocations: 160.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9095/0.9095, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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.CCCVcharging,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.134e-06/2.134e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.481e-05/2.694e-05, allocations: 2.281 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004595/0.004622, allocations: 3.71 MB / 328.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002529/0.00715, allocations: 1.951 MB / 330.2 MB, free: 10.22 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003275/0.007478, allocations: 11.94 kB / 330.2 MB, free: 10.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001246/0.008724, allocations: 0.5795 MB / 330.7 MB, free: 9.625 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005873/0.009311, allocations: 405.7 kB / 331.1 MB, free: 9.227 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005053/0.009816, allocations: 283.5 kB / 331.4 MB, free: 8.949 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001306/0.01112, allocations: 1.019 MB / 332.4 MB, free: 7.926 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003683/0.01149, allocations: 217 kB / 332.7 MB, free: 7.711 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006862/0.01218, allocations: 0.5419 MB / 333.2 MB, free: 7.168 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004227/0.0126, allocations: 443 kB / 333.6 MB, free: 6.734 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.031e-05/0.01268, allocations: 80 kB / 333.7 MB, free: 6.656 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002018/0.01288, allocations: 139.8 kB / 333.8 MB, free: 6.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002481/0.01313, allocations: 490.6 kB / 334.3 MB, free: 6.039 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002616/0.01339, allocations: 390.8 kB / 334.7 MB, free: 5.656 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001245/0.01464, allocations: 1.725 MB / 336.4 MB, free: 3.926 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.01464, allocations: 0 / 336.4 MB, free: 3.926 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.01464, allocations: 0 / 336.4 MB, free: 3.926 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.098e-05/0.01466, allocations: 4 kB / 336.4 MB, free: 3.922 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.002198/0.01686, allocations: 1.777 MB / 338.2 MB, free: 2.102 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/0.01691, allocations: 11.98 kB / 338.2 MB, free: 2.09 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.83e-05/0.017, allocations: 98.7 kB / 338.3 MB, free: 1.984 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001633/0.01716, allocations: 167.9 kB / 338.5 MB, free: 1.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0015/0.01866, allocations: 1.137 MB / 339.6 MB, free: 0.6484 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001198/0.01878, allocations: 174.1 kB / 339.8 MB, free: 460 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.407e-05/0.01885, allocations: 52.33 kB / 339.8 MB, free: 408 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008807/0.01973, allocations: 1.019 MB / 340.9 MB, free: 15.25 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.01974, allocations: 4.125 kB / 340.9 MB, free: 15.24 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.646e-05/0.01978, allocations: 27.94 kB / 340.9 MB, free: 15.21 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.01979, allocations: 12 kB / 340.9 MB, free: 15.2 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005309/0.02032, allocations: 431.7 kB / 341.3 MB, free: 14.78 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00269/0.02301, allocations: 2.599 MB / 343.9 MB, free: 12.09 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006089/0.02361, allocations: 398.5 kB / 344.3 MB, free: 11.69 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004151/0.02403, allocations: 297.4 kB / 344.6 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.236e-05/0.02405, allocations: 11.94 kB / 344.6 MB, free: 11.38 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.86e-05/0.02408, allocations: 42.55 kB / 344.7 MB, free: 11.33 MB / 314.7 MB Notification: Performance of pre-optimization done (n=30): time 2.394e-06/0.02408, allocations: 0 / 344.7 MB, free: 11.33 MB / 314.7 MB Notification: Performance of matching and sorting (n=30): time 0.001146/0.02523, allocations: 0.6976 MB / 345.4 MB, free: 10.62 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/0.02534, allocations: 265 kB / 345.6 MB, free: 10.3 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002166/0.02751, allocations: 2.246 MB / 347.9 MB, free: 8.047 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.874e-05/0.02754, allocations: 29.7 kB / 347.9 MB, free: 8.012 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003826/0.02792, allocations: 0.6512 MB / 348.5 MB, free: 7.352 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.375e-05/0.02798, allocations: 111.1 kB / 348.6 MB, free: 7.242 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.678e-05/0.02808, allocations: 70.08 kB / 348.7 MB, free: 7.164 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.965e-05/0.02817, allocations: 330 kB / 349 MB, free: 6.836 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002163/0.02839, allocations: 160.7 kB / 349.2 MB, free: 6.68 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000316/0.0287, allocations: 0.5018 MB / 349.7 MB, free: 6.074 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004228/0.02913, allocations: 396.7 kB / 350.1 MB, free: 5.656 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.02913, allocations: 4 kB / 350.1 MB, free: 5.652 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007935/0.02992, allocations: 0.6528 MB / 350.7 MB, free: 4.988 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.02994, allocations: 8 kB / 350.7 MB, free: 4.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.02995, allocations: 4 kB / 350.8 MB, free: 4.977 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002221/0.03017, allocations: 64.94 kB / 350.8 MB, free: 4.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002041/0.03038, allocations: 91.88 kB / 350.9 MB, free: 4.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001164/0.03154, allocations: 1.648 MB / 352.6 MB, free: 3.062 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002477/0.03179, allocations: 59.7 kB / 352.6 MB, free: 3.004 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.167e-05/0.03181, allocations: 23.94 kB / 352.6 MB, free: 2.98 MB / 314.7 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.0004436/0.03225, allocations: 481.6 kB / 353.1 MB, free: 2.5 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000116/0.03237, allocations: 147 kB / 353.2 MB, free: 2.355 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000132/0.0325, allocations: 161.6 kB / 353.4 MB, free: 2.195 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.0325, allocations: 4.094 kB / 353.4 MB, free: 2.191 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.03251, allocations: 4 kB / 353.4 MB, free: 2.188 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.03251, allocations: 0 / 353.4 MB, free: 2.188 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002034/0.03454, allocations: 1.493 MB / 354.9 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.03455, allocations: 3.938 kB / 354.9 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001941/0.03474, allocations: 71.88 kB / 355 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001308/0.03487, allocations: 56.89 kB / 355 MB, free: 0.5 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.027e-05/0.03489, allocations: 11.98 kB / 355 MB, free: 500 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001013/0.03591, allocations: 1.613 MB / 356.7 MB, free: 14.76 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.03591, allocations: 0 / 356.7 MB, free: 14.76 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008893/0.0368, allocations: 0.8069 MB / 357.5 MB, free: 13.93 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003468/0.03714, allocations: 255 kB / 357.7 MB, free: 13.68 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.769e-05/0.03721, allocations: 15.94 kB / 357.7 MB, free: 13.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002263/0.03744, allocations: 51.89 kB / 357.8 MB, free: 13.61 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.885e-05/0.03751, allocations: 31.94 kB / 357.8 MB, free: 13.58 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.372e-05/0.03752, allocations: 8 kB / 357.8 MB, free: 13.57 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001438/0.03896, allocations: 1.615 MB / 359.4 MB, free: 11.96 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.03896, allocations: 0 / 359.4 MB, free: 11.96 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004992/0.03946, allocations: 203.7 kB / 359.6 MB, free: 11.76 MB / 330.7 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.001951/0.04141, allocations: 1.727 MB / 361.4 MB, free: 10.17 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008587/0.04227, allocations: 494.5 kB / 361.8 MB, free: 9.676 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.04227, allocations: 4 kB / 361.8 MB, free: 9.672 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003411/0.04261, allocations: 303.1 kB / 362.1 MB, free: 9.363 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006898/0.0433, allocations: 209 kB / 362.3 MB, free: 9.156 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01835/0.06165, allocations: 13.99 MB / 376.3 MB, free: 10.9 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005321/0.06219, allocations: 0.6644 MB / 377 MB, free: 10.21 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000403/0.06259, allocations: 215.8 kB / 377.2 MB, free: 9.996 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003926/0.06298, allocations: 480.3 kB / 377.7 MB, free: 9.527 MB / 346.7 MB Notification: Performance of SimCode: time 9.52e-07/0.06298, allocations: 0 / 377.7 MB, free: 9.527 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04261/0.1056, allocations: 29.81 MB / 407.5 MB, free: 11.86 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.576/8.682, allocations: 8 kB / 407.5 MB, free: 11.85 MB / 378.7 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 10.725642709992826]