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.001354/0.001354, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001791/0.001791, allocations: 211.4 kB / 23.73 MB, free: 4.387 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.458/1.458, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.001833/0.001833, allocations: 55.91 kB / 377.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2737/0.2755, allocations: 53.37 MB / 431.1 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006052/0.2816, allocations: 3.706 MB / 434.8 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00417/0.2858, allocations: 1.94 MB / 436.7 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000646/0.2864, allocations: 15.94 kB / 436.7 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001565/0.288, allocations: 0.5642 MB / 437.3 MB, free: 388 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001007/0.289, allocations: 394.1 kB / 437.7 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007725/0.2897, allocations: 294.4 kB / 438 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001361/0.2911, allocations: 0.9896 MB / 439 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004584/0.2916, allocations: 213 kB / 439.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005801/0.2921, allocations: 402.6 kB / 439.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007578/0.2929, allocations: 494.2 kB / 440 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001685/0.2931, allocations: 80 kB / 440.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00034/0.2934, allocations: 136 kB / 440.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004423/0.2938, allocations: 474.7 kB / 440.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006785/0.2945, allocations: 497 kB / 441.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00201/0.2965, allocations: 1.786 MB / 443 MB, free: 10.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.2965, allocations: 4 kB / 443 MB, free: 10.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2965, allocations: 4 kB / 443 MB, free: 10.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.878e-05/0.2966, allocations: 0 / 443 MB, free: 10.66 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.003842/0.3004, allocations: 1.792 MB / 444.8 MB, free: 8.824 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.3005, allocations: 12.03 kB / 444.8 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001449/0.3006, allocations: 90.7 kB / 444.9 MB, free: 8.715 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003325/0.301, allocations: 167.9 kB / 445.1 MB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002176/0.3031, allocations: 1.134 MB / 446.2 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001731/0.3033, allocations: 173.8 kB / 446.4 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.281e-05/0.3034, allocations: 51.95 kB / 446.4 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.3047, allocations: 1.019 MB / 447.4 MB, free: 5.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.3047, allocations: 3.984 kB / 447.4 MB, free: 5.977 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.606e-05/0.3048, allocations: 24 kB / 447.5 MB, free: 5.953 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.653e-05/0.3048, allocations: 12 kB / 447.5 MB, free: 5.941 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007958/0.3056, allocations: 435.7 kB / 447.9 MB, free: 5.516 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004843/0.3104, allocations: 2.61 MB / 450.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.3115, allocations: 395.3 kB / 450.9 MB, free: 2.414 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007232/0.3123, allocations: 284.7 kB / 451.2 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.826e-05/0.3123, allocations: 4 kB / 451.2 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.871e-05/0.3123, allocations: 42.56 kB / 451.2 MB, free: 2.078 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 4.528e-06/0.3124, allocations: 4 kB / 451.2 MB, free: 2.074 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.002316/0.3147, allocations: 0.6969 MB / 451.9 MB, free: 1.367 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001837/0.3149, allocations: 269 kB / 452.2 MB, free: 1.043 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003405/0.3183, allocations: 2.25 MB / 454.4 MB, free: 14.78 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.557e-05/0.3183, allocations: 29.7 kB / 454.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006509/0.319, allocations: 0.6513 MB / 455.1 MB, free: 14.09 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001316/0.3191, allocations: 111 kB / 455.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001659/0.3193, allocations: 74.08 kB / 455.3 MB, free: 13.9 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.3195, allocations: 325.9 kB / 455.6 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000379/0.3199, allocations: 168.6 kB / 455.8 MB, free: 13.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005669/0.3204, allocations: 0.4982 MB / 456.3 MB, free: 12.81 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007242/0.3212, allocations: 397.3 kB / 456.7 MB, free: 12.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/0.3212, allocations: 0 / 456.7 MB, free: 12.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001627/0.3228, allocations: 0.6492 MB / 457.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.329e-05/0.3228, allocations: 7.938 kB / 457.3 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.759e-06/0.3228, allocations: 4 kB / 457.3 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000313/0.3231, allocations: 64.81 kB / 457.4 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003869/0.3235, allocations: 96 kB / 457.5 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001812/0.3253, allocations: 1.652 MB / 459.1 MB, free: 9.793 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005959/0.3259, allocations: 63.73 kB / 459.2 MB, free: 9.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.073e-05/0.326, allocations: 16 kB / 459.2 MB, free: 9.715 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.0007377/0.3267, allocations: 479.8 kB / 459.7 MB, free: 9.238 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002402/0.3269, allocations: 147 kB / 459.8 MB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002221/0.3272, allocations: 169.5 kB / 460 MB, free: 8.922 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.107e-06/0.3272, allocations: 4 kB / 460 MB, free: 8.918 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.3272, allocations: 0 / 460 MB, free: 8.918 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.3272, allocations: 0 / 460 MB, free: 8.918 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002775/0.3299, allocations: 1.485 MB / 461.5 MB, free: 7.367 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.33, allocations: 3.984 kB / 461.5 MB, free: 7.363 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003365/0.3303, allocations: 75.88 kB / 461.6 MB, free: 7.289 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001857/0.3305, allocations: 56.95 kB / 461.6 MB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.661e-05/0.3305, allocations: 16.05 kB / 461.6 MB, free: 7.215 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001586/0.3321, allocations: 1.613 MB / 463.2 MB, free: 5.484 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.3321, allocations: 7.922 kB / 463.2 MB, free: 5.477 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001505/0.3336, allocations: 0.8061 MB / 464 MB, free: 4.645 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000692/0.3343, allocations: 262.9 kB / 464.3 MB, free: 4.387 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001204/0.3344, allocations: 8 kB / 464.3 MB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004618/0.3349, allocations: 43.95 kB / 464.4 MB, free: 4.336 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.552e-05/0.335, allocations: 35.94 kB / 464.4 MB, free: 4.301 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.261e-05/0.335, allocations: 8 kB / 464.4 MB, free: 4.293 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00225/0.3372, allocations: 1.612 MB / 466 MB, free: 2.684 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3372, allocations: 0 / 466 MB, free: 2.684 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008317/0.3381, allocations: 211.6 kB / 466.2 MB, free: 2.477 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.003782/0.3419, allocations: 1.743 MB / 468 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001127/0.343, allocations: 498.8 kB / 468.4 MB, free: 424 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/0.343, allocations: 3.906 kB / 468.5 MB, free: 420 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005296/0.3435, allocations: 302.9 kB / 468.7 MB, free: 104 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001115/0.3446, allocations: 209.8 kB / 469 MB, free: 15.9 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02139/0.366, allocations: 13.91 MB / 482.9 MB, free: 1.746 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008196/0.3668, allocations: 0.6682 MB / 483.5 MB, free: 1.051 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006135/0.3675, allocations: 219.8 kB / 483.7 MB, free: 0.832 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006371/0.3681, allocations: 479.3 kB / 484.2 MB, free: 372 kB / 382.1 MB Notification: Performance of SimCode: time 1.303e-06/0.3681, allocations: 4 kB / 484.2 MB, free: 368 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07533/0.4434, allocations: 29.73 MB / 0.5019 GB, free: 2.879 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.62/14.06, allocations: 4 kB / 0.5019 GB, free: 2.875 MB / 414.1 MB " [Timeout remaining time 646] (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] "" 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: 17.17447079019621]