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.001421/0.001421, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001516/0.001516, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001789/0.001789, allocations: 63.89 kB / 358.2 MB, free: 13.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2764/0.2782, allocations: 50.54 MB / 408.7 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005974/0.2842, allocations: 4.031 MB / 412.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003456/0.2877, allocations: 2.064 MB / 414.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003823/0.2881, allocations: 8 kB / 414.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001338/0.2895, allocations: 0.5982 MB / 415.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007276/0.2903, allocations: 382.1 kB / 415.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006699/0.2909, allocations: 291.1 kB / 416.1 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001104/0.2921, allocations: 0.9898 MB / 417.1 MB, free: 9.184 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005004/0.2926, allocations: 344.5 kB / 417.4 MB, free: 8.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004291/0.293, allocations: 390.6 kB / 417.8 MB, free: 8.457 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00058/0.2936, allocations: 0.4905 MB / 418.3 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001073/0.2937, allocations: 84 kB / 418.4 MB, free: 7.883 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002469/0.294, allocations: 132 kB / 418.5 MB, free: 7.754 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004047/0.2944, allocations: 482.7 kB / 419 MB, free: 7.281 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005676/0.295, allocations: 0.629 MB / 419.6 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001769/0.2967, allocations: 1.766 MB / 421.4 MB, free: 4.875 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2968, allocations: 0 / 421.4 MB, free: 4.875 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.2968, allocations: 0 / 421.4 MB, free: 4.875 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.784e-05/0.2968, allocations: 0 / 421.4 MB, free: 4.875 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.00303/0.2998, allocations: 1.875 MB / 423.3 MB, free: 2.941 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.2999, allocations: 12.03 kB / 423.3 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001153/0.3, allocations: 98.7 kB / 423.4 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002341/0.3002, allocations: 167.9 kB / 423.5 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001688/0.3019, allocations: 1.19 MB / 424.7 MB, free: 1.422 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001176/0.3021, allocations: 100.7 kB / 424.8 MB, free: 1.312 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.564e-05/0.3022, allocations: 51.95 kB / 424.9 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001086/0.3032, allocations: 0.6595 MB / 425.5 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.3033, allocations: 7.938 kB / 425.5 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.44e-05/0.3033, allocations: 20 kB / 425.6 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.728e-05/0.3034, allocations: 12 kB / 425.6 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007772/0.3041, allocations: 439.7 kB / 426 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004219/0.3084, allocations: 2.868 MB / 428.9 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009707/0.3094, allocations: 426.5 kB / 429.3 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006369/0.31, allocations: 320.7 kB / 429.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.44e-05/0.31, allocations: 4 kB / 429.6 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.088e-05/0.3101, allocations: 38.56 kB / 429.6 MB, free: 12.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.993e-06/0.3101, allocations: 0 / 429.6 MB, free: 12.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001786/0.3119, allocations: 0.7722 MB / 430.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001493/0.3121, allocations: 273 kB / 430.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002821/0.3149, allocations: 2.246 MB / 432.9 MB, free: 8.938 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.235e-05/0.3149, allocations: 33.7 kB / 432.9 MB, free: 8.898 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006032/0.3156, allocations: 0.6396 MB / 433.6 MB, free: 8.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.3157, allocations: 115.1 kB / 433.7 MB, free: 8.137 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001418/0.3158, allocations: 82.02 kB / 433.8 MB, free: 8.047 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.316, allocations: 321.9 kB / 434.1 MB, free: 7.727 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003407/0.3163, allocations: 160.7 kB / 434.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004574/0.3168, allocations: 304.8 kB / 434.6 MB, free: 7.219 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007046/0.3175, allocations: 392.3 kB / 434.9 MB, free: 6.805 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.3175, allocations: 0 / 434.9 MB, free: 6.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00138/0.3189, allocations: 0.6495 MB / 435.6 MB, free: 6.145 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.3189, allocations: 7.938 kB / 435.6 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/0.319, allocations: 4 kB / 435.6 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003094/0.3193, allocations: 64.94 kB / 435.7 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003846/0.3197, allocations: 91.88 kB / 435.7 MB, free: 5.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001902/0.3216, allocations: 1.779 MB / 437.5 MB, free: 4.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005179/0.3221, allocations: 55.75 kB / 437.6 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.958e-05/0.3222, allocations: 16 kB / 437.6 MB, free: 3.992 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.0006794/0.3228, allocations: 489.1 kB / 438.1 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002158/0.3231, allocations: 139.1 kB / 438.2 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002267/0.3233, allocations: 165.5 kB / 438.4 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.3233, allocations: 8.062 kB / 438.4 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.3233, allocations: 0 / 438.4 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.3233, allocations: 3.984 kB / 438.4 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002828/0.3262, allocations: 1.665 MB / 440 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.3262, allocations: 0 / 440 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003401/0.3265, allocations: 79.89 kB / 440.1 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001983/0.3267, allocations: 56.81 kB / 440.2 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.287e-05/0.3268, allocations: 8 kB / 440.2 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00174/0.3285, allocations: 1.724 MB / 441.9 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.474e-06/0.3286, allocations: 11.95 kB / 441.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001635/0.3302, allocations: 0.7982 MB / 442.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005778/0.3308, allocations: 336.1 kB / 443.1 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/0.3309, allocations: 11.98 kB / 443.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004642/0.3314, allocations: 47.95 kB / 443.1 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.3315, allocations: 27.91 kB / 443.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.528e-05/0.3316, allocations: 12 kB / 443.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002352/0.3339, allocations: 1.612 MB / 444.8 MB, free: 12.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.3339, allocations: 0 / 444.8 MB, free: 12.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008813/0.3348, allocations: 203.7 kB / 445 MB, free: 12.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.003545/0.3384, allocations: 1.722 MB / 446.7 MB, free: 10.76 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001145/0.3395, allocations: 498.9 kB / 447.2 MB, free: 10.26 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.3396, allocations: 4.188 kB / 447.2 MB, free: 10.26 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005386/0.3401, allocations: 310.5 kB / 447.5 MB, free: 9.941 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001089/0.3412, allocations: 207.2 kB / 447.7 MB, free: 9.742 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02091/0.3621, allocations: 13.91 MB / 461.6 MB, free: 11.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001046/0.3632, allocations: 1.257 MB / 462.8 MB, free: 10.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005928/0.3638, allocations: 219.8 kB / 463.1 MB, free: 10.08 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006412/0.3645, allocations: 487.2 kB / 463.5 MB, free: 9.605 MB / 382.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3645, allocations: 0 / 463.5 MB, free: 9.605 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06869/0.4332, allocations: 28 MB / 491.5 MB, free: 13.84 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.9/14.34, allocations: 10.55 kB / 491.6 MB, free: 13.83 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.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) "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