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.0009595/0.0009595, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.001108/0.001108, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9457/0.9457, allocations: 177.1 MB / 204.3 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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 1.523e-06/1.523e-06, allocations: 0 / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.884e-05/2.037e-05, allocations: 2.281 kB / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004689/0.004709, allocations: 3.721 MB / 328.3 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002953/0.007662, allocations: 1.947 MB / 330.2 MB, free: 10.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004089/0.00807, allocations: 15.94 kB / 330.2 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001202/0.009273, allocations: 0.5756 MB / 330.8 MB, free: 9.672 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007572/0.01003, allocations: 405.8 kB / 331.2 MB, free: 9.273 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006153/0.01065, allocations: 275.5 kB / 331.5 MB, free: 9.004 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001043/0.01169, allocations: 1.013 MB / 332.5 MB, free: 7.988 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006203/0.01231, allocations: 217 kB / 332.7 MB, free: 7.773 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006381/0.01295, allocations: 0.5418 MB / 333.2 MB, free: 7.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005235/0.01347, allocations: 459 kB / 333.7 MB, free: 6.781 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.733e-05/0.01357, allocations: 76 kB / 333.8 MB, free: 6.707 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002227/0.01379, allocations: 135.9 kB / 333.9 MB, free: 6.574 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003039/0.01409, allocations: 490.6 kB / 334.4 MB, free: 6.094 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003333/0.01443, allocations: 378.9 kB / 334.7 MB, free: 5.723 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001379/0.01581, allocations: 1.733 MB / 336.5 MB, free: 3.984 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.01581, allocations: 0 / 336.5 MB, free: 3.984 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.01581, allocations: 0 / 336.5 MB, free: 3.984 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.655e-05/0.01587, allocations: 0 / 336.5 MB, free: 3.984 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.002626/0.0185, allocations: 1.788 MB / 338.3 MB, free: 2.152 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.01855, allocations: 8.031 kB / 338.3 MB, free: 2.145 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001033/0.01865, allocations: 94.7 kB / 338.4 MB, free: 2.043 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002437/0.01889, allocations: 167.9 kB / 338.5 MB, free: 1.879 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001461/0.02036, allocations: 1.137 MB / 339.7 MB, free: 0.7031 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000402/0.02076, allocations: 170.1 kB / 339.8 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.22e-05/0.02082, allocations: 52.33 kB / 339.9 MB, free: 468 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009171/0.02174, allocations: 1.03 MB / 340.9 MB, free: 15.3 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.02175, allocations: 0 / 340.9 MB, free: 15.3 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.71e-05/0.02179, allocations: 20 kB / 340.9 MB, free: 15.28 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.0218, allocations: 12 kB / 340.9 MB, free: 15.27 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000544/0.02234, allocations: 443.6 kB / 341.4 MB, free: 14.83 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003029/0.02537, allocations: 2.595 MB / 344 MB, free: 12.14 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006147/0.02599, allocations: 402.4 kB / 344.4 MB, free: 11.74 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003978/0.02638, allocations: 297.6 kB / 344.7 MB, free: 11.45 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.967e-05/0.0264, allocations: 3.938 kB / 344.7 MB, free: 11.44 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.02643, allocations: 38.56 kB / 344.7 MB, free: 11.39 MB / 314.7 MB Notification: Performance of pre-optimization done (n=30): time 2.034e-06/0.02643, allocations: 0 / 344.7 MB, free: 11.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=30): time 0.001124/0.02756, allocations: 0.7008 MB / 345.4 MB, free: 10.68 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.751e-05/0.02765, allocations: 269 kB / 345.7 MB, free: 10.36 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002264/0.02992, allocations: 2.246 MB / 347.9 MB, free: 8.102 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.034e-05/0.02995, allocations: 37.7 kB / 347.9 MB, free: 8.059 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003644/0.03031, allocations: 0.6474 MB / 348.6 MB, free: 7.402 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.648e-05/0.03038, allocations: 115 kB / 348.7 MB, free: 7.289 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.982e-05/0.03047, allocations: 70.08 kB / 348.8 MB, free: 7.211 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.043e-05/0.03055, allocations: 325.9 kB / 349.1 MB, free: 6.887 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002028/0.03075, allocations: 160.6 kB / 349.2 MB, free: 6.73 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003203/0.03107, allocations: 0.5058 MB / 349.8 MB, free: 6.121 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004225/0.03149, allocations: 396.7 kB / 350.1 MB, free: 5.703 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.0315, allocations: 3.938 kB / 350.1 MB, free: 5.699 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008282/0.03233, allocations: 0.6489 MB / 350.8 MB, free: 5.039 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.03235, allocations: 8.125 kB / 350.8 MB, free: 5.031 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.03235, allocations: 4 kB / 350.8 MB, free: 5.027 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002342/0.03259, allocations: 68.81 kB / 350.9 MB, free: 4.957 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002125/0.0328, allocations: 91.83 kB / 351 MB, free: 4.867 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001223/0.03402, allocations: 1.652 MB / 352.6 MB, free: 3.105 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000278/0.0343, allocations: 55.66 kB / 352.7 MB, free: 3.051 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.197e-05/0.03432, allocations: 16 kB / 352.7 MB, free: 3.035 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.0004133/0.03474, allocations: 485.7 kB / 353.2 MB, free: 2.551 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001171/0.03485, allocations: 143.1 kB / 353.3 MB, free: 2.41 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001173/0.03497, allocations: 161.6 kB / 353.5 MB, free: 2.25 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.03497, allocations: 4 kB / 353.5 MB, free: 2.246 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.03498, allocations: 3.938 kB / 353.5 MB, free: 2.242 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.03498, allocations: 7.969 kB / 353.5 MB, free: 2.234 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001956/0.03694, allocations: 1.489 MB / 355 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.03694, allocations: 4.062 kB / 355 MB, free: 0.6797 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001746/0.03712, allocations: 71.89 kB / 355 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001378/0.03726, allocations: 60.94 kB / 355.1 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.989e-05/0.03728, allocations: 8 kB / 355.1 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009937/0.03827, allocations: 1.613 MB / 356.7 MB, free: 14.81 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.03827, allocations: 0 / 356.7 MB, free: 14.81 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008589/0.03913, allocations: 0.804 MB / 357.5 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003188/0.03945, allocations: 255 kB / 357.8 MB, free: 13.73 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.378e-05/0.03952, allocations: 23.86 kB / 357.8 MB, free: 13.71 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002399/0.03976, allocations: 43.95 kB / 357.8 MB, free: 13.66 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.323e-05/0.03984, allocations: 35.89 kB / 357.9 MB, free: 13.63 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.427e-05/0.03985, allocations: 8 kB / 357.9 MB, free: 13.62 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001398/0.04125, allocations: 1.612 MB / 359.5 MB, free: 12.01 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04125, allocations: 3.938 kB / 359.5 MB, free: 12.01 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000532/0.04178, allocations: 207.7 kB / 359.7 MB, free: 11.8 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.002257/0.04404, allocations: 1.732 MB / 361.4 MB, free: 10.25 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007542/0.04479, allocations: 494.7 kB / 361.9 MB, free: 9.754 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.0448, allocations: 0 / 361.9 MB, free: 9.754 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003303/0.04513, allocations: 294.5 kB / 362.2 MB, free: 9.453 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006569/0.04578, allocations: 219.8 kB / 362.4 MB, free: 9.242 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01829/0.06407, allocations: 14 MB / 376.4 MB, free: 10.98 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005125/0.06459, allocations: 0.6643 MB / 377.1 MB, free: 10.29 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003951/0.06498, allocations: 215.9 kB / 377.3 MB, free: 10.07 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004221/0.0654, allocations: 476.3 kB / 377.8 MB, free: 9.609 MB / 346.7 MB Notification: Performance of SimCode: time 1.513e-06/0.0654, allocations: 0 / 377.8 MB, free: 9.609 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05114/0.1165, allocations: 29.82 MB / 407.6 MB, free: 11.98 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.523/8.64, allocations: 7.531 kB / 407.6 MB, free: 11.97 MB / 378.7 MB " [Timeout remaining time 651] (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/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_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: 10.758480502292514]