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.001659/0.001659, allocations: 113.6 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002054/0.002054, allocations: 204.7 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.388/1.388, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 55.91 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2763/0.2777, allocations: 50.54 MB / 408.7 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006165/0.2839, allocations: 4.027 MB / 412.8 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003595/0.2876, allocations: 2.072 MB / 414.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005502/0.2881, allocations: 8 kB / 414.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001503/0.2897, allocations: 0.5943 MB / 415.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001048/0.2908, allocations: 394.1 kB / 415.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008147/0.2916, allocations: 279 kB / 416.1 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001324/0.2929, allocations: 0.9937 MB / 417.1 MB, free: 9.191 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000546/0.2935, allocations: 352.5 kB / 417.4 MB, free: 8.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005425/0.294, allocations: 398.6 kB / 417.8 MB, free: 8.449 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006893/0.2947, allocations: 494.2 kB / 418.3 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001732/0.2949, allocations: 80 kB / 418.4 MB, free: 7.887 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003574/0.2953, allocations: 136 kB / 418.5 MB, free: 7.754 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003608/0.2957, allocations: 482.7 kB / 419 MB, free: 7.281 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007459/0.2964, allocations: 0.6368 MB / 419.6 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001895/0.2983, allocations: 1.766 MB / 421.4 MB, free: 4.867 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.421e-06/0.2983, allocations: 0 / 421.4 MB, free: 4.867 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.466e-06/0.2984, allocations: 0 / 421.4 MB, free: 4.867 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.034e-05/0.2984, allocations: 3.938 kB / 421.4 MB, free: 4.863 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.00314/0.3016, allocations: 1.868 MB / 423.3 MB, free: 2.938 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.312e-05/0.3016, allocations: 12.03 kB / 423.3 MB, free: 2.926 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000116/0.3018, allocations: 94.7 kB / 423.4 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002251/0.302, allocations: 167.9 kB / 423.5 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001873/0.3039, allocations: 1.186 MB / 424.7 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000116/0.304, allocations: 104.7 kB / 424.8 MB, free: 1.312 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.826e-05/0.3041, allocations: 51.95 kB / 424.9 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001045/0.3051, allocations: 0.6634 MB / 425.5 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.3052, allocations: 0 / 425.5 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.584e-05/0.3052, allocations: 24 kB / 425.6 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.3052, allocations: 12 kB / 425.6 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007331/0.306, allocations: 439.7 kB / 426 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003948/0.3099, allocations: 2.864 MB / 428.9 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009238/0.3109, allocations: 426.5 kB / 429.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005992/0.3115, allocations: 324.6 kB / 429.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/0.3115, allocations: 8 kB / 429.6 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.918e-05/0.3116, allocations: 38.56 kB / 429.6 MB, free: 12.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.104e-06/0.3116, allocations: 0 / 429.6 MB, free: 12.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001715/0.3133, allocations: 0.7722 MB / 430.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/0.3134, allocations: 265 kB / 430.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002452/0.3159, allocations: 2.25 MB / 432.9 MB, free: 8.938 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.744e-05/0.3159, allocations: 33.7 kB / 433 MB, free: 8.898 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004903/0.3164, allocations: 0.6435 MB / 433.6 MB, free: 8.246 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.593e-05/0.3165, allocations: 111.1 kB / 433.7 MB, free: 8.137 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.3166, allocations: 82.02 kB / 433.8 MB, free: 8.047 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.3167, allocations: 321.9 kB / 434.1 MB, free: 7.727 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003164/0.3171, allocations: 160.7 kB / 434.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003939/0.3175, allocations: 304.8 kB / 434.6 MB, free: 7.219 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006474/0.3181, allocations: 389 kB / 434.9 MB, free: 6.809 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3181, allocations: 0 / 434.9 MB, free: 6.809 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001268/0.3194, allocations: 0.6528 MB / 435.6 MB, free: 6.145 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.3194, allocations: 11.94 kB / 435.6 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.3195, allocations: 0 / 435.6 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000282/0.3197, allocations: 68.94 kB / 435.7 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003819/0.3201, allocations: 91.88 kB / 435.8 MB, free: 5.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00179/0.3219, allocations: 1.771 MB / 437.5 MB, free: 4.066 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005274/0.3225, allocations: 55.81 kB / 437.6 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.442e-05/0.3225, allocations: 16 kB / 437.6 MB, free: 3.996 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.0006569/0.3232, allocations: 497 kB / 438.1 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002369/0.3234, allocations: 139.1 kB / 438.2 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002729/0.3237, allocations: 169.5 kB / 438.4 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.3237, allocations: 4 kB / 438.4 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.3237, allocations: 0 / 438.4 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.3237, allocations: 3.984 kB / 438.4 MB, free: 3.188 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002979/0.3267, allocations: 1.665 MB / 440.1 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.3268, allocations: 0 / 440.1 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003474/0.3271, allocations: 71.89 kB / 440.1 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002359/0.3274, allocations: 64.88 kB / 440.2 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.252e-05/0.3274, allocations: 4 kB / 440.2 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0018/0.3292, allocations: 1.72 MB / 441.9 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.3292, allocations: 3.938 kB / 441.9 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001557/0.3308, allocations: 0.8022 MB / 442.7 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006997/0.3315, allocations: 340 kB / 443.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002435/0.3318, allocations: 11.98 kB / 443.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005846/0.3324, allocations: 51.95 kB / 443.1 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.662e-05/0.3325, allocations: 27.91 kB / 443.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.023e-05/0.3325, allocations: 12 kB / 443.2 MB, free: 14.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002448/0.335, allocations: 1.608 MB / 444.8 MB, free: 12.56 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.335, allocations: 0 / 444.8 MB, free: 12.56 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000849/0.3358, allocations: 207.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.002758/0.3386, allocations: 1.719 MB / 446.7 MB, free: 10.76 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00112/0.3397, allocations: 0.4908 MB / 447.2 MB, free: 10.26 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.3398, allocations: 4 kB / 447.2 MB, free: 10.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005247/0.3403, allocations: 311.1 kB / 447.5 MB, free: 9.938 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001127/0.3414, allocations: 210 kB / 447.7 MB, free: 9.734 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02272/0.3642, allocations: 13.9 MB / 461.6 MB, free: 11.58 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001174/0.3654, allocations: 1.253 MB / 462.8 MB, free: 10.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005938/0.366, allocations: 231.8 kB / 463.1 MB, free: 10.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008388/0.3669, allocations: 479.3 kB / 463.5 MB, free: 9.602 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3669, allocations: 0 / 463.5 MB, free: 9.602 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06049/0.4274, allocations: 28 MB / 491.5 MB, free: 13.84 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.37/13.8, allocations: 10.89 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.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