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.001836/0.001836, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 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.002155/0.002155, allocations: 206.6 kB / 20.75 MB, free: 2.312 MB / 14.72 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 1.512/1.512, allocations: 230.4 MB / 254 MB, free: 15 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002133/0.002133, allocations: 63.89 kB / 373 MB, free: 10.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1261, allocations: 53.38 MB / 426.3 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.007028/0.1332, allocations: 4.043 MB / 430.4 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2334/0.3666, allocations: 2.072 MB / 432.5 MB, free: 7.219 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000565/0.3671, allocations: 17.31 kB / 432.5 MB, free: 7.219 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001735/0.3689, allocations: 0.5937 MB / 433.1 MB, free: 7.172 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008318/0.3697, allocations: 392 kB / 433.5 MB, free: 7.078 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007107/0.3704, allocations: 292.9 kB / 433.7 MB, free: 7.059 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001173/0.3716, allocations: 0.9764 MB / 434.7 MB, free: 6.887 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004532/0.372, allocations: 260.2 kB / 435 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005532/0.3726, allocations: 402.8 kB / 435.4 MB, free: 6.789 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006599/0.3732, allocations: 0.5042 MB / 435.9 MB, free: 6.711 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001237/0.3734, allocations: 79.03 kB / 435.9 MB, free: 6.711 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003375/0.3737, allocations: 144.9 kB / 436.1 MB, free: 6.703 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004125/0.3741, allocations: 471.4 kB / 436.5 MB, free: 6.641 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005324/0.3746, allocations: 0.6369 MB / 437.2 MB, free: 6.402 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002212/0.3769, allocations: 1.774 MB / 439 MB, free: 5.828 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3769, allocations: 0 / 439 MB, free: 5.828 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3769, allocations: 0 / 439 MB, free: 5.828 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.49e-05/0.3769, allocations: 1.375 kB / 439 MB, free: 5.828 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.003395/0.3803, allocations: 1.868 MB / 440.8 MB, free: 4.602 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.3804, allocations: 10.91 kB / 440.8 MB, free: 4.602 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001239/0.3805, allocations: 96.88 kB / 440.9 MB, free: 4.527 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003003/0.3808, allocations: 172.5 kB / 441.1 MB, free: 4.434 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002045/0.3828, allocations: 1.193 MB / 442.3 MB, free: 3.805 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001083/0.3829, allocations: 93.92 kB / 442.4 MB, free: 3.727 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.722e-05/0.383, allocations: 52.33 kB / 442.4 MB, free: 3.707 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001201/0.3842, allocations: 0.6583 MB / 443.1 MB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.3842, allocations: 1.438 kB / 443.1 MB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.516e-05/0.3843, allocations: 25.28 kB / 443.1 MB, free: 3.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.948e-05/0.3843, allocations: 13.17 kB / 443.1 MB, free: 3.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008449/0.3852, allocations: 435.3 kB / 443.6 MB, free: 3.195 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005057/0.3902, allocations: 2.866 MB / 446.4 MB, free: 1.672 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001022/0.3912, allocations: 392.4 kB / 446.8 MB, free: 1.523 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000645/0.3919, allocations: 300 kB / 447.1 MB, free: 1.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.326e-05/0.3919, allocations: 3.5 kB / 447.1 MB, free: 1.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/0.3919, allocations: 38.86 kB / 447.1 MB, free: 1.387 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.535e-06/0.3919, allocations: 0 / 447.1 MB, free: 1.387 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.002166/0.3941, allocations: 0.7813 MB / 447.9 MB, free: 1.016 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.322e-05/0.3942, allocations: 266.4 kB / 448.2 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004061/0.3983, allocations: 2.243 MB / 450.4 MB, free: 4 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001111/0.3984, allocations: 31.58 kB / 450.5 MB, free: 15.97 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007251/0.3991, allocations: 0.6442 MB / 451.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001302/0.3992, allocations: 116.2 kB / 451.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001625/0.3994, allocations: 80.28 kB / 451.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.3995, allocations: 322.9 kB / 451.6 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003778/0.3999, allocations: 160.7 kB / 451.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005171/0.4004, allocations: 299 kB / 452.1 MB, free: 14.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007356/0.4012, allocations: 400.3 kB / 452.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.4012, allocations: 3.938 kB / 452.5 MB, free: 14.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001763/0.4029, allocations: 0.645 MB / 453.1 MB, free: 14.26 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.673e-05/0.403, allocations: 6.688 kB / 453.1 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.337e-06/0.403, allocations: 5.188 kB / 453.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003658/0.4033, allocations: 74.14 kB / 453.2 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004145/0.4038, allocations: 90.3 kB / 453.3 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002153/0.4059, allocations: 1.765 MB / 455 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007789/0.4067, allocations: 56.3 kB / 455.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.049e-05/0.4067, allocations: 11.56 kB / 455.1 MB, free: 12.54 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.001012/0.4077, allocations: 484.4 kB / 455.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003516/0.4081, allocations: 147.5 kB / 455.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003137/0.4084, allocations: 161.5 kB / 455.9 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.4084, allocations: 7.656 kB / 455.9 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.4084, allocations: 4.688 kB / 455.9 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.4084, allocations: 1.125 kB / 455.9 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0033/0.4117, allocations: 1.666 MB / 457.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.4117, allocations: 3.938 kB / 457.6 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003579/0.4121, allocations: 71.64 kB / 457.6 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002143/0.4123, allocations: 61.41 kB / 457.7 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.688e-05/0.4123, allocations: 7.219 kB / 457.7 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002095/0.4144, allocations: 1.728 MB / 459.4 MB, free: 9.324 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4144, allocations: 1.156 kB / 459.4 MB, free: 9.324 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001976/0.4164, allocations: 0.7974 MB / 460.2 MB, free: 8.832 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000783/0.4172, allocations: 343.2 kB / 460.6 MB, free: 8.582 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001547/0.4173, allocations: 12.02 kB / 460.6 MB, free: 8.574 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005045/0.4178, allocations: 43.77 kB / 460.6 MB, free: 8.559 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.4179, allocations: 32.53 kB / 460.6 MB, free: 8.539 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.666e-05/0.418, allocations: 7.094 kB / 460.7 MB, free: 8.539 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002925/0.4209, allocations: 1.612 MB / 462.3 MB, free: 7.793 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4209, allocations: 0 / 462.3 MB, free: 7.793 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00142/0.4223, allocations: 203.7 kB / 462.5 MB, free: 7.758 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.004005/0.4263, allocations: 1.718 MB / 464.2 MB, free: 6.625 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001265/0.4276, allocations: 495.7 kB / 464.7 MB, free: 6.336 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.4276, allocations: 1.281 kB / 464.7 MB, free: 6.336 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006893/0.4283, allocations: 298.4 kB / 465 MB, free: 6.137 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001131/0.4294, allocations: 216.6 kB / 465.2 MB, free: 6.012 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02563/0.455, allocations: 13.91 MB / 479.1 MB, free: 10.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00131/0.4563, allocations: 1.257 MB / 480.3 MB, free: 8.992 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007247/0.4571, allocations: 223.8 kB / 480.6 MB, free: 8.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008245/0.4579, allocations: 475.3 kB / 481 MB, free: 8.305 MB / 382.1 MB Notification: Performance of SimCode: time 1.453e-06/0.4579, allocations: 0 / 481 MB, free: 8.305 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08829/0.5462, allocations: 28.12 MB / 0.4972 GB, free: 12.35 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.32/14.86, allocations: 12 kB / 0.4972 GB, free: 12.34 MB / 414.1 MB " [Timeout remaining time 645] (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/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_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: 17.91898736904841]