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.001511/0.001512, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002138/0.002138, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.478/1.478, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 63.17 kB / 307.1 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1048, allocations: 50.52 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005911/0.1108, allocations: 4.016 MB / 361.6 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00332/0.1141, allocations: 2.069 MB / 363.7 MB, free: 7.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004425/0.1146, allocations: 15.94 kB / 363.7 MB, free: 7.895 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001424/0.1161, allocations: 0.5991 MB / 364.3 MB, free: 7.293 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009574/0.117, allocations: 382.1 kB / 364.6 MB, free: 6.918 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007921/0.1178, allocations: 294.9 kB / 364.9 MB, free: 6.633 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001525/0.1194, allocations: 0.9859 MB / 365.9 MB, free: 5.645 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007167/0.1201, allocations: 352.5 kB / 366.3 MB, free: 5.289 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007408/0.1209, allocations: 378.8 kB / 366.6 MB, free: 4.918 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008583/0.1217, allocations: 0.4904 MB / 367.1 MB, free: 4.426 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002108/0.122, allocations: 80 kB / 367.2 MB, free: 4.348 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003391/0.1223, allocations: 136 kB / 367.3 MB, free: 4.215 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003742/0.1227, allocations: 474.7 kB / 367.8 MB, free: 3.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007723/0.1235, allocations: 0.6329 MB / 368.4 MB, free: 3.113 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001658/0.1251, allocations: 1.729 MB / 370.2 MB, free: 1.379 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1251, allocations: 4 kB / 370.2 MB, free: 1.375 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.1252, allocations: 4 kB / 370.2 MB, free: 1.371 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.461e-05/0.1252, allocations: 4 kB / 370.2 MB, free: 1.367 MB / 302.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.2013/0.3265, allocations: 1.808 MB / 372 MB, free: 19.44 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.491e-05/0.3267, allocations: 10.22 kB / 372 MB, free: 19.44 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002677/0.3269, allocations: 98.52 kB / 372.1 MB, free: 19.4 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005088/0.3275, allocations: 159.9 kB / 372.2 MB, free: 19.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002715/0.3302, allocations: 1.17 MB / 373.4 MB, free: 18.9 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003824/0.3306, allocations: 136.4 kB / 373.5 MB, free: 18.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001144/0.3307, allocations: 48.5 kB / 373.6 MB, free: 18.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001443/0.3322, allocations: 0.6787 MB / 374.3 MB, free: 18.51 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.3322, allocations: 3.062 kB / 374.3 MB, free: 18.51 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.185e-05/0.3323, allocations: 21.69 kB / 374.3 MB, free: 18.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.133e-05/0.3323, allocations: 16.02 kB / 374.3 MB, free: 18.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00109/0.3334, allocations: 447.8 kB / 374.8 MB, free: 18.35 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005644/0.339, allocations: 2.902 MB / 377.7 MB, free: 16.83 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001265/0.3403, allocations: 448.1 kB / 378.1 MB, free: 16.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007581/0.3411, allocations: 325.8 kB / 378.4 MB, free: 16.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.864e-05/0.3412, allocations: 3.5 kB / 378.4 MB, free: 16.58 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.585e-05/0.3412, allocations: 37.28 kB / 378.4 MB, free: 16.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.494e-06/0.3412, allocations: 1.375 kB / 378.4 MB, free: 16.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.00226/0.3435, allocations: 0.8038 MB / 379.3 MB, free: 16.17 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.626e-05/0.3436, allocations: 261.8 kB / 379.5 MB, free: 15.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004214/0.3478, allocations: 2.243 MB / 381.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.978e-05/0.3478, allocations: 32.02 kB / 381.8 MB, free: 15.13 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005208/0.3484, allocations: 0.6408 MB / 382.4 MB, free: 14.63 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.527e-05/0.3485, allocations: 108.5 kB / 382.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001487/0.3486, allocations: 77.53 kB / 382.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.136e-05/0.3487, allocations: 322.5 kB / 382.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004417/0.3492, allocations: 170.5 kB / 383.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004929/0.3497, allocations: 315 kB / 383.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008062/0.3505, allocations: 416.8 kB / 383.8 MB, free: 13.71 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.3505, allocations: 1.156 kB / 383.8 MB, free: 13.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001664/0.3522, allocations: 0.6675 MB / 384.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/0.3522, allocations: 8.5 kB / 384.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.3522, allocations: 2.312 kB / 384.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003336/0.3525, allocations: 67.36 kB / 384.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004434/0.353, allocations: 97.67 kB / 384.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001831/0.3548, allocations: 1.777 MB / 386.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008363/0.3557, allocations: 61.19 kB / 386.5 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.081e-05/0.3558, allocations: 16.3 kB / 386.5 MB, free: 11.71 MB / 302.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.0009053/0.3567, allocations: 487.7 kB / 387 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003094/0.357, allocations: 138.5 kB / 387.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00031/0.3573, allocations: 165.7 kB / 387.3 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.3573, allocations: 4.828 kB / 387.3 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.3573, allocations: 8 kB / 387.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.3574, allocations: 1.641 kB / 387.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003138/0.3605, allocations: 1.68 MB / 389 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.3605, allocations: 5.188 kB / 389 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003555/0.3609, allocations: 78.66 kB / 389 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002034/0.3611, allocations: 56.14 kB / 389.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.591e-05/0.3611, allocations: 11.22 kB / 389.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001238/0.3624, allocations: 1.719 MB / 390.8 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.3624, allocations: 1.469 kB / 390.8 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001634/0.364, allocations: 0.8303 MB / 391.7 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004495/0.3645, allocations: 325.6 kB / 392 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001285/0.3646, allocations: 23.67 kB / 392 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005003/0.3652, allocations: 50.61 kB / 392.1 MB, free: 8.156 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.84e-05/0.3653, allocations: 32.55 kB / 392.1 MB, free: 8.137 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.339e-05/0.3653, allocations: 11.25 kB / 392.1 MB, free: 8.133 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00205/0.3673, allocations: 1.608 MB / 393.7 MB, free: 7.391 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3673, allocations: 0 / 393.7 MB, free: 7.391 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007827/0.3681, allocations: 210.6 kB / 393.9 MB, free: 7.352 MB / 302.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.00259/0.3707, allocations: 1.734 MB / 395.6 MB, free: 6.203 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00116/0.3719, allocations: 0.5536 MB / 396.2 MB, free: 5.887 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3719, allocations: 5.438 kB / 396.2 MB, free: 5.883 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005152/0.3724, allocations: 327.2 kB / 396.5 MB, free: 5.668 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008902/0.3733, allocations: 208 kB / 396.7 MB, free: 5.555 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01845/0.3918, allocations: 15.5 MB / 412.2 MB, free: 6.109 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009568/0.3928, allocations: 1.257 MB / 413.5 MB, free: 4.824 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006036/0.3934, allocations: 223.8 kB / 413.7 MB, free: 4.602 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005784/0.394, allocations: 483.3 kB / 414.2 MB, free: 4.129 MB / 318.1 MB Notification: Performance of SimCode: time 8.21e-07/0.394, allocations: 0 / 414.2 MB, free: 4.129 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09346/0.4875, allocations: 27.57 MB / 441.7 MB, free: 8.777 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/12.11, allocations: 12.06 kB / 441.8 MB, free: 8.766 MB / 350.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)