Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.0008442/0.0008442, 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.0007655/0.0007655, allocations: 149.1 kB / 23.93 MB, free: 0.6289 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.9049/0.9049, allocations: 173.4 MB / 200.5 MB, free: 9.418 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.CCCVcharging,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.169e-05/2.312e-05, allocations: 2.281 kB / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.00392/0.003943, allocations: 3.65 MB / 322.1 MB, free: 2.676 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002369/0.006312, allocations: 1.792 MB / 323.9 MB, free: 0.875 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000276/0.006588, allocations: 15.94 kB / 323.9 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001117/0.007705, allocations: 0.5795 MB / 324.5 MB, free: 284 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005592/0.008264, allocations: 358.1 kB / 324.8 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005483/0.008813, allocations: 298 kB / 325.1 MB, free: 15.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008816/0.009694, allocations: 1.012 MB / 326.1 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000331/0.01003, allocations: 213 kB / 326.3 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005761/0.0106, allocations: 0.5341 MB / 326.9 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004723/0.01107, allocations: 451 kB / 327.3 MB, free: 13.44 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.68e-05/0.01116, allocations: 76 kB / 327.4 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002055/0.01137, allocations: 139.8 kB / 327.5 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002539/0.01162, allocations: 478.6 kB / 328 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002786/0.0119, allocations: 386.9 kB / 328.3 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001213/0.01311, allocations: 1.721 MB / 330.1 MB, free: 10.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.01312, allocations: 0 / 330.1 MB, free: 10.65 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.01312, allocations: 4 kB / 330.1 MB, free: 10.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.281e-05/0.01315, allocations: 0 / 330.1 MB, free: 10.65 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.002305/0.01546, allocations: 1.773 MB / 331.8 MB, free: 8.832 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.0155, allocations: 8.922 kB / 331.9 MB, free: 8.824 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.718e-05/0.01558, allocations: 94.7 kB / 331.9 MB, free: 8.723 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001868/0.01577, allocations: 167.9 kB / 332.1 MB, free: 8.559 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001219/0.01699, allocations: 1.133 MB / 333.2 MB, free: 7.391 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001184/0.01711, allocations: 174.1 kB / 333.4 MB, free: 7.191 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.682e-05/0.01717, allocations: 52.31 kB / 333.5 MB, free: 7.141 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008357/0.018, allocations: 1.011 MB / 334.5 MB, free: 5.996 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.01801, allocations: 4 kB / 334.5 MB, free: 5.992 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.505e-05/0.01805, allocations: 20 kB / 334.5 MB, free: 5.973 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.01806, allocations: 12 kB / 334.5 MB, free: 5.961 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005045/0.01856, allocations: 435.7 kB / 334.9 MB, free: 5.535 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002678/0.02124, allocations: 2.603 MB / 337.5 MB, free: 2.832 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006098/0.02185, allocations: 406.4 kB / 337.9 MB, free: 2.426 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003965/0.02225, allocations: 290.5 kB / 338.2 MB, free: 2.141 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.02227, allocations: 4 kB / 338.2 MB, free: 2.137 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.675e-05/0.0223, allocations: 38.56 kB / 338.3 MB, free: 2.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.984e-06/0.0223, allocations: 4 kB / 338.3 MB, free: 2.086 MB / 298.7 MB Notification: Performance of matching and sorting (n=30): time 0.001088/0.02339, allocations: 0.6891 MB / 339 MB, free: 1.387 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.763e-05/0.02349, allocations: 269 kB / 339.2 MB, free: 1.062 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001811/0.0253, allocations: 2.238 MB / 341.5 MB, free: 14.8 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.924e-05/0.02533, allocations: 37.7 kB / 341.5 MB, free: 14.76 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003587/0.02568, allocations: 0.6395 MB / 342.1 MB, free: 14.12 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.094e-05/0.02574, allocations: 115 kB / 342.2 MB, free: 14.01 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.836e-05/0.02583, allocations: 77.97 kB / 342.3 MB, free: 13.92 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.115e-05/0.02591, allocations: 326 kB / 342.6 MB, free: 13.6 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001949/0.02611, allocations: 160.7 kB / 342.8 MB, free: 13.44 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003219/0.02643, allocations: 0.4943 MB / 343.3 MB, free: 12.84 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004397/0.02687, allocations: 397.3 kB / 343.7 MB, free: 12.43 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.758e-06/0.02687, allocations: 3.938 kB / 343.7 MB, free: 12.42 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008027/0.02768, allocations: 0.6454 MB / 344.3 MB, free: 11.77 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.0277, allocations: 6.969 kB / 344.3 MB, free: 11.76 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.02771, allocations: 4 kB / 344.3 MB, free: 11.76 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002636/0.02797, allocations: 68.75 kB / 344.4 MB, free: 11.69 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002132/0.02818, allocations: 95.94 kB / 344.5 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001294/0.02948, allocations: 1.66 MB / 346.2 MB, free: 9.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002422/0.02972, allocations: 63.73 kB / 346.2 MB, free: 9.758 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.279e-05/0.02974, allocations: 12.08 kB / 346.2 MB, free: 9.746 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.0004156/0.03016, allocations: 477.6 kB / 346.7 MB, free: 9.27 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/0.03027, allocations: 143.1 kB / 346.8 MB, free: 9.129 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001239/0.0304, allocations: 169.4 kB / 347 MB, free: 8.961 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.0304, allocations: 4 kB / 347 MB, free: 8.957 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.03041, allocations: 7.922 kB / 347 MB, free: 8.949 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.03042, allocations: 0 / 347 MB, free: 8.949 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001626/0.03204, allocations: 1.481 MB / 348.5 MB, free: 7.406 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.03205, allocations: 4 kB / 348.5 MB, free: 7.402 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001759/0.03222, allocations: 67.95 kB / 348.6 MB, free: 7.336 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001273/0.03235, allocations: 56.75 kB / 348.6 MB, free: 7.277 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.611e-05/0.03237, allocations: 16.06 kB / 348.6 MB, free: 7.262 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001035/0.03341, allocations: 1.609 MB / 350.2 MB, free: 5.535 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.03341, allocations: 0 / 350.2 MB, free: 5.535 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008867/0.0343, allocations: 0.8069 MB / 351.1 MB, free: 4.699 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003216/0.03462, allocations: 259 kB / 351.3 MB, free: 4.445 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.515e-05/0.03469, allocations: 19.86 kB / 351.3 MB, free: 4.426 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002313/0.03493, allocations: 51.94 kB / 351.4 MB, free: 4.375 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.362e-05/0.03501, allocations: 31.95 kB / 351.4 MB, free: 4.344 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.613e-05/0.03503, allocations: 12 kB / 351.4 MB, free: 4.332 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001439/0.03646, allocations: 1.6 MB / 353 MB, free: 2.734 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03646, allocations: 0 / 353 MB, free: 2.734 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004898/0.03695, allocations: 203.7 kB / 353.2 MB, free: 2.535 MB / 314.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.001883/0.03884, allocations: 1.738 MB / 355 MB, free: 0.9766 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007201/0.03956, allocations: 490.8 kB / 355.4 MB, free: 496 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.03956, allocations: 0 / 355.4 MB, free: 496 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003039/0.03986, allocations: 314.8 kB / 355.7 MB, free: 168 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005819/0.04045, allocations: 201.7 kB / 355.9 MB, free: 15.96 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01644/0.05688, allocations: 13.96 MB / 369.9 MB, free: 1.754 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005089/0.05739, allocations: 0.6562 MB / 370.6 MB, free: 1.066 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003401/0.05773, allocations: 219.8 kB / 370.8 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004334/0.05817, allocations: 476.4 kB / 371.2 MB, free: 392 kB / 330.7 MB Notification: Performance of SimCode: time 1.203e-06/0.05817, allocations: 0 / 371.2 MB, free: 392 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04534/0.1035, allocations: 29.74 MB / 401 MB, free: 2.832 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.5/8.604, allocations: 9.922 kB / 401 MB, free: 2.828 MB / 362.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,battery.capacitor[1].v,battery.capacitor[2].v,battery.limIntegrator.y,energy.y Variables in the result:time,battery.capacitor[1].v,battery.capacitor[2].v,battery.limIntegrator.y,energy.y [Calling sys.exit(0), Time elapsed: 10.728205248713493]