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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001081/0.00108, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001162/0.001162, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 59.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2706/0.2719, allocations: 50.55 MB / 408.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005127/0.277, allocations: 4.022 MB / 412.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003133/0.2802, allocations: 2.061 MB / 414.8 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003198/0.2805, allocations: 15.94 kB / 414.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001223/0.2818, allocations: 0.5904 MB / 415.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006671/0.2825, allocations: 394 kB / 415.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000645/0.2832, allocations: 291 kB / 416.1 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009847/0.2841, allocations: 0.9859 MB / 417.1 MB, free: 9.156 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004634/0.2846, allocations: 348.5 kB / 417.4 MB, free: 8.809 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003859/0.285, allocations: 390.7 kB / 417.8 MB, free: 8.426 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005441/0.2856, allocations: 494.2 kB / 418.3 MB, free: 7.941 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001193/0.2857, allocations: 80 kB / 418.4 MB, free: 7.863 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000273/0.286, allocations: 139.9 kB / 418.5 MB, free: 7.727 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003519/0.2863, allocations: 474.7 kB / 419 MB, free: 7.262 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005328/0.2869, allocations: 0.6368 MB / 419.6 MB, free: 6.621 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001711/0.2886, allocations: 1.766 MB / 421.4 MB, free: 4.848 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.2886, allocations: 4 kB / 421.4 MB, free: 4.844 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2886, allocations: 0 / 421.4 MB, free: 4.844 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.36e-05/0.2886, allocations: 0 / 421.4 MB, free: 4.844 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.002932/0.2916, allocations: 1.871 MB / 423.3 MB, free: 2.914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/0.2916, allocations: 8.031 kB / 423.3 MB, free: 2.906 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001133/0.2918, allocations: 94.7 kB / 423.4 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002229/0.292, allocations: 167.9 kB / 423.5 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00165/0.2937, allocations: 1.194 MB / 424.7 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001107/0.2938, allocations: 96.72 kB / 424.8 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.544e-05/0.2939, allocations: 51.95 kB / 424.9 MB, free: 1.242 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001026/0.2949, allocations: 0.6673 MB / 425.5 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.2949, allocations: 3.938 kB / 425.5 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.086e-05/0.295, allocations: 24 kB / 425.5 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.39e-05/0.295, allocations: 12 kB / 425.6 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007388/0.2957, allocations: 435.7 kB / 426 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003796/0.2995, allocations: 2.876 MB / 428.9 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009165/0.3005, allocations: 422.5 kB / 429.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006021/0.3011, allocations: 308.7 kB / 429.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.024e-05/0.3011, allocations: 4 kB / 429.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.181e-05/0.3012, allocations: 50.5 kB / 429.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.184e-06/0.3012, allocations: 0 / 429.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.0018/0.303, allocations: 0.78 MB / 430.4 MB, free: 11.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001416/0.3031, allocations: 265 kB / 430.7 MB, free: 11.17 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002626/0.3058, allocations: 2.246 MB / 432.9 MB, free: 8.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.765e-05/0.3058, allocations: 29.7 kB / 432.9 MB, free: 8.875 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005076/0.3063, allocations: 0.6435 MB / 433.6 MB, free: 8.223 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.032e-05/0.3064, allocations: 119 kB / 433.7 MB, free: 8.105 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001238/0.3066, allocations: 78.03 kB / 433.8 MB, free: 8.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.3067, allocations: 321.9 kB / 434.1 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003322/0.3071, allocations: 164.6 kB / 434.3 MB, free: 7.539 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004137/0.3075, allocations: 303.6 kB / 434.6 MB, free: 7.191 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006443/0.3081, allocations: 392.3 kB / 434.9 MB, free: 6.777 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.3082, allocations: 0 / 434.9 MB, free: 6.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001242/0.3094, allocations: 0.6534 MB / 435.6 MB, free: 6.113 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.834e-05/0.3094, allocations: 15.92 kB / 435.6 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.3094, allocations: 0 / 435.6 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002955/0.3097, allocations: 60.83 kB / 435.7 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003665/0.3101, allocations: 96 kB / 435.8 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001578/0.3117, allocations: 1.763 MB / 437.5 MB, free: 4.043 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004245/0.3122, allocations: 55.7 kB / 437.6 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.575e-05/0.3122, allocations: 16 kB / 437.6 MB, free: 3.973 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.0005508/0.3127, allocations: 493.5 kB / 438.1 MB, free: 3.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001637/0.3129, allocations: 139.1 kB / 438.2 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002022/0.3131, allocations: 169.5 kB / 438.4 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/0.3131, allocations: 4 kB / 438.4 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.3131, allocations: 0 / 438.4 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.77e-06/0.3132, allocations: 128 / 438.4 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002477/0.3156, allocations: 1.673 MB / 440.1 MB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.3157, allocations: 7.938 kB / 440.1 MB, free: 1.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003232/0.316, allocations: 67.89 kB / 440.1 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001759/0.3162, allocations: 56.83 kB / 440.2 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.722e-05/0.3162, allocations: 12.05 kB / 440.2 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001433/0.3177, allocations: 1.716 MB / 441.9 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.3177, allocations: 3.938 kB / 441.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001342/0.319, allocations: 0.806 MB / 442.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004345/0.3195, allocations: 340 kB / 443 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001148/0.3196, allocations: 8 kB / 443.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004406/0.32, allocations: 51.95 kB / 443.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.986e-05/0.3201, allocations: 27.95 kB / 443.1 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.441e-05/0.3202, allocations: 12.12 kB / 443.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001837/0.322, allocations: 1.608 MB / 444.8 MB, free: 12.53 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.322, allocations: 0 / 444.8 MB, free: 12.53 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007021/0.3227, allocations: 203.7 kB / 445 MB, free: 12.33 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.002508/0.3253, allocations: 1.717 MB / 446.7 MB, free: 10.74 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001007/0.3263, allocations: 0.4949 MB / 447.2 MB, free: 10.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3263, allocations: 4 kB / 447.2 MB, free: 10.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004864/0.3268, allocations: 310.9 kB / 447.5 MB, free: 9.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008782/0.3277, allocations: 219.6 kB / 447.7 MB, free: 9.707 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01864/0.3463, allocations: 13.91 MB / 461.6 MB, free: 11.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008299/0.3472, allocations: 1.257 MB / 462.8 MB, free: 10.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004735/0.3477, allocations: 219.8 kB / 463.1 MB, free: 10.05 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005257/0.3482, allocations: 483.3 kB / 463.5 MB, free: 9.574 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3482, allocations: 0 / 463.5 MB, free: 9.574 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05619/0.4044, allocations: 28 MB / 491.5 MB, free: 13.81 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.26/13.66, allocations: 4.875 kB / 491.5 MB, free: 13.8 MB / 414.1 MB (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) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[24004]=1200.000000 File[9220]=1024.000000 " 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