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.001242/0.001242, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 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.001362/0.001362, allocations: 183.8 kB / 23.72 MB, free: 4.699 MB / 14.72 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 1.447/1.447, allocations: 225.6 MB / 252.5 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001477/0.001477, allocations: 43.94 kB / 370.4 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2482, allocations: 52.18 MB / 422.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005637/0.2539, allocations: 4.038 MB / 426.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002948/0.2568, allocations: 1.92 MB / 428.6 MB, free: 8.598 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002549/0.2571, allocations: 19.88 kB / 428.6 MB, free: 8.578 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001188/0.2583, allocations: 0.5875 MB / 429.2 MB, free: 7.988 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005713/0.2588, allocations: 362.2 kB / 429.5 MB, free: 7.633 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006343/0.2595, allocations: 290.3 kB / 429.8 MB, free: 7.352 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001118/0.2606, allocations: 0.9819 MB / 430.8 MB, free: 6.367 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003731/0.261, allocations: 233.1 kB / 431 MB, free: 6.137 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000414/0.2614, allocations: 398.7 kB / 431.4 MB, free: 5.746 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005886/0.262, allocations: 0.5061 MB / 431.9 MB, free: 5.238 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001043/0.2621, allocations: 76 kB / 432 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002241/0.2623, allocations: 136 kB / 432.1 MB, free: 5.031 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003667/0.2627, allocations: 474.7 kB / 432.6 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005448/0.2632, allocations: 0.629 MB / 433.2 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001719/0.2649, allocations: 1.763 MB / 435 MB, free: 2.164 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.2649, allocations: 3.984 kB / 435 MB, free: 2.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2649, allocations: 0 / 435 MB, free: 2.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.725e-05/0.2649, allocations: 0 / 435 MB, free: 2.16 MB / 334.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.002909/0.2679, allocations: 1.785 MB / 436.8 MB, free: 340 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.2679, allocations: 8.031 kB / 436.8 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001259/0.268, allocations: 94.7 kB / 436.9 MB, free: 228 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002305/0.2683, allocations: 163.9 kB / 437 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001911/0.2702, allocations: 1.137 MB / 438.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001783/0.2703, allocations: 173.8 kB / 438.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.755e-05/0.2704, allocations: 48 kB / 438.4 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001145/0.2716, allocations: 0.6596 MB / 439 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.2716, allocations: 0 / 439 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.367e-05/0.2716, allocations: 28 kB / 439.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.511e-05/0.2716, allocations: 12 kB / 439.1 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008309/0.2725, allocations: 435.7 kB / 439.5 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004442/0.2769, allocations: 2.828 MB / 442.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000944/0.2779, allocations: 409.6 kB / 442.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006248/0.2785, allocations: 296.1 kB / 443 MB, free: 9.852 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.864e-05/0.2785, allocations: 4 kB / 443 MB, free: 9.848 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/0.2786, allocations: 43.06 kB / 443.1 MB, free: 9.797 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.433e-06/0.2786, allocations: 0 / 443.1 MB, free: 9.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001773/0.2803, allocations: 0.6965 MB / 443.8 MB, free: 9.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001592/0.2805, allocations: 265 kB / 444 MB, free: 8.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002798/0.2833, allocations: 2.234 MB / 446.3 MB, free: 6.523 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.335e-05/0.2833, allocations: 33.7 kB / 446.3 MB, free: 6.484 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005964/0.2839, allocations: 0.6396 MB / 446.9 MB, free: 5.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001035/0.284, allocations: 111.1 kB / 447 MB, free: 5.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001344/0.2842, allocations: 82.02 kB / 447.1 MB, free: 5.641 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.2843, allocations: 325.9 kB / 447.4 MB, free: 5.316 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003367/0.2846, allocations: 156.7 kB / 447.6 MB, free: 5.164 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004603/0.2851, allocations: 304.6 kB / 447.9 MB, free: 4.812 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006989/0.2858, allocations: 401.1 kB / 448.3 MB, free: 4.391 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.2858, allocations: 0 / 448.3 MB, free: 4.391 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001335/0.2871, allocations: 0.6416 MB / 448.9 MB, free: 3.738 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.2872, allocations: 7.938 kB / 448.9 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.2872, allocations: 8.125 kB / 448.9 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002829/0.2875, allocations: 68.69 kB / 449 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003854/0.2878, allocations: 91.88 kB / 449.1 MB, free: 3.562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001799/0.2896, allocations: 1.664 MB / 450.8 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000436/0.2901, allocations: 51.77 kB / 450.8 MB, free: 1.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.629e-05/0.2901, allocations: 12 kB / 450.8 MB, free: 1.723 MB / 350.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.0006162/0.2907, allocations: 489.5 kB / 451.3 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001939/0.2909, allocations: 143.1 kB / 451.4 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002221/0.2911, allocations: 165.4 kB / 451.6 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.2911, allocations: 4.125 kB / 451.6 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.2911, allocations: 4 kB / 451.6 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.2911, allocations: 3.984 kB / 451.6 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00294/0.2941, allocations: 1.618 MB / 453.2 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.2941, allocations: 8.062 kB / 453.2 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000326/0.2944, allocations: 67.95 kB / 453.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001839/0.2946, allocations: 56.81 kB / 453.4 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.612e-05/0.2946, allocations: 15.92 kB / 453.4 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001613/0.2962, allocations: 1.614 MB / 455 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/0.2962, allocations: 11.86 kB / 455 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001492/0.2977, allocations: 0.8124 MB / 455.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006268/0.2984, allocations: 255 kB / 456.1 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001146/0.2985, allocations: 8 kB / 456.1 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004461/0.2989, allocations: 48.08 kB / 456.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.931e-05/0.299, allocations: 39.94 kB / 456.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.533e-05/0.299, allocations: 12 kB / 456.2 MB, free: 12.14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002173/0.3012, allocations: 1.592 MB / 457.8 MB, free: 10.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3012, allocations: 0 / 457.8 MB, free: 10.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007185/0.3019, allocations: 203.7 kB / 458 MB, free: 10.36 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.003574/0.3055, allocations: 1.72 MB / 459.7 MB, free: 8.789 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00117/0.3067, allocations: 494.3 kB / 460.2 MB, free: 8.293 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/0.3067, allocations: 4 kB / 460.2 MB, free: 8.289 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005517/0.3072, allocations: 294.5 kB / 460.5 MB, free: 7.988 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001019/0.3082, allocations: 212.4 kB / 460.7 MB, free: 7.785 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02026/0.3285, allocations: 13.88 MB / 474.5 MB, free: 9.645 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001002/0.3295, allocations: 1.26 MB / 475.8 MB, free: 8.359 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004881/0.33, allocations: 211.8 kB / 476 MB, free: 8.148 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006077/0.3306, allocations: 475.3 kB / 476.5 MB, free: 7.684 MB / 382.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3306, allocations: 0 / 476.5 MB, free: 7.684 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07176/0.4024, allocations: 28.34 MB / 0.493 GB, free: 11.54 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.65/15.05, allocations: 3.562 kB / 0.493 GB, free: 11.54 MB / 414.1 MB " [Timeout remaining time 645] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins1/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] Reference file matches [Calling sys.exit(0), Time elapsed: 17.910543996000342]