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.001114/0.001114, allocations: 104.8 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001058/0.001058, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 227.4 MB / 246.3 MB, free: 10.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 63.86 kB / 306.3 MB, free: 0.9688 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1103, allocations: 50.54 MB / 356.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006915/0.1173, allocations: 4.038 MB / 360.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003494/0.1208, allocations: 2.053 MB / 363 MB, free: 8.301 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005891/0.1214, allocations: 11.94 kB / 363 MB, free: 8.289 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001432/0.1229, allocations: 0.5684 MB / 363.6 MB, free: 7.719 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008172/0.1237, allocations: 350.6 kB / 363.9 MB, free: 7.375 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000698/0.1244, allocations: 250.9 kB / 364.1 MB, free: 7.133 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00118/0.1256, allocations: 0.9383 MB / 365.1 MB, free: 6.195 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004288/0.1261, allocations: 308.1 kB / 365.4 MB, free: 5.887 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003932/0.1265, allocations: 338.7 kB / 365.7 MB, free: 5.555 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004831/0.127, allocations: 466.3 kB / 366.2 MB, free: 5.098 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001064/0.1271, allocations: 48 kB / 366.2 MB, free: 5.051 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002442/0.1273, allocations: 104 kB / 366.3 MB, free: 4.949 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003498/0.1277, allocations: 438.7 kB / 366.7 MB, free: 4.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005404/0.1283, allocations: 0.5899 MB / 367.3 MB, free: 3.926 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001375/0.1296, allocations: 1.701 MB / 369 MB, free: 2.219 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.1297, allocations: 7.984 kB / 369 MB, free: 2.211 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.51e-07/0.1297, allocations: 0 / 369 MB, free: 2.211 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.782e-05/0.1297, allocations: 0 / 369 MB, free: 2.211 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.002876/0.1326, allocations: 1.814 MB / 370.9 MB, free: 348 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.1326, allocations: 8.031 kB / 370.9 MB, free: 340 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001157/0.1327, allocations: 98.64 kB / 371 MB, free: 232 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002246/0.133, allocations: 155.1 kB / 371.1 MB, free: 76 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2027/0.3357, allocations: 1.17 MB / 372.3 MB, free: 19.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003613/0.3361, allocations: 133.8 kB / 372.4 MB, free: 19.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.805e-05/0.3361, allocations: 48.83 kB / 372.5 MB, free: 19.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00123/0.3374, allocations: 0.6698 MB / 373.1 MB, free: 19.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/0.3374, allocations: 2.031 kB / 373.1 MB, free: 19.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.531e-05/0.3375, allocations: 21.19 kB / 373.2 MB, free: 19.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.741e-05/0.3375, allocations: 21.78 kB / 373.2 MB, free: 19.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008671/0.3384, allocations: 446.7 kB / 373.6 MB, free: 19.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004672/0.3431, allocations: 2.896 MB / 376.5 MB, free: 17.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/0.3442, allocations: 457.6 kB / 377 MB, free: 17.62 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000724/0.345, allocations: 321.7 kB / 377.3 MB, free: 17.53 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.692e-05/0.345, allocations: 11.41 kB / 377.3 MB, free: 17.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.465e-05/0.345, allocations: 39.06 kB / 377.3 MB, free: 17.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.034e-06/0.345, allocations: 2.719 kB / 377.3 MB, free: 17.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.002427/0.3475, allocations: 0.7953 MB / 378.1 MB, free: 17.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/0.3476, allocations: 266.6 kB / 378.4 MB, free: 16.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003644/0.3513, allocations: 2.243 MB / 380.6 MB, free: 16.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.531e-05/0.3513, allocations: 36.73 kB / 380.7 MB, free: 16.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006055/0.3519, allocations: 0.6433 MB / 381.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.352, allocations: 97.7 kB / 381.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001804/0.3522, allocations: 80.67 kB / 381.5 MB, free: 15.45 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.959e-05/0.3523, allocations: 323.1 kB / 381.8 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004986/0.3528, allocations: 170.5 kB / 382 MB, free: 15.08 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005976/0.3535, allocations: 315.3 kB / 382.3 MB, free: 14.87 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009741/0.3544, allocations: 416.5 kB / 382.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.591e-06/0.3545, allocations: 0 / 382.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001812/0.3563, allocations: 0.6661 MB / 383.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.552e-05/0.3563, allocations: 10.39 kB / 383.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.3563, allocations: 2.344 kB / 383.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003227/0.3567, allocations: 62.31 kB / 383.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004405/0.3571, allocations: 96.81 kB / 383.5 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00177/0.3589, allocations: 1.613 MB / 385.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007256/0.3596, allocations: 53.17 kB / 385.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.589e-05/0.3597, allocations: 14.94 kB / 385.2 MB, free: 12.83 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.000881/0.3606, allocations: 495.9 kB / 385.7 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002718/0.3608, allocations: 142.6 kB / 385.8 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002521/0.3611, allocations: 164.3 kB / 386 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.3611, allocations: 7.922 kB / 386 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.3611, allocations: 1.547 kB / 386 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.3611, allocations: 1.5 kB / 386 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003103/0.3642, allocations: 1.686 MB / 387.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.3643, allocations: 6.031 kB / 387.7 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003726/0.3646, allocations: 78.14 kB / 387.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002008/0.3649, allocations: 58.86 kB / 387.8 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.109e-05/0.3649, allocations: 12.7 kB / 387.8 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001163/0.3661, allocations: 1.551 MB / 389.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3661, allocations: 1.156 kB / 389.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001716/0.3678, allocations: 0.8314 MB / 390.2 MB, free: 9.762 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004608/0.3683, allocations: 334.5 kB / 390.5 MB, free: 9.527 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001258/0.3684, allocations: 8.438 kB / 390.5 MB, free: 9.523 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004883/0.3689, allocations: 54.48 kB / 390.6 MB, free: 9.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.369, allocations: 28.73 kB / 390.6 MB, free: 9.484 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.413e-05/0.369, allocations: 11.27 kB / 390.6 MB, free: 9.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001989/0.371, allocations: 1.608 MB / 392.2 MB, free: 8.738 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.371, allocations: 0 / 392.2 MB, free: 8.738 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007507/0.3718, allocations: 209 kB / 392.4 MB, free: 8.699 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.002647/0.3745, allocations: 1.743 MB / 394.2 MB, free: 7.543 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001141/0.3756, allocations: 0.5156 MB / 394.7 MB, free: 7.242 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.3756, allocations: 6.156 kB / 394.7 MB, free: 7.238 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000567/0.3762, allocations: 324.5 kB / 395 MB, free: 7.023 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009158/0.3771, allocations: 194.2 kB / 395.2 MB, free: 6.918 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02253/0.3997, allocations: 15.77 MB / 411 MB, free: 7.707 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001172/0.4009, allocations: 1.257 MB / 412.2 MB, free: 6.426 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006318/0.4015, allocations: 211.9 kB / 412.4 MB, free: 6.215 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006377/0.4022, allocations: 483.3 kB / 412.9 MB, free: 5.742 MB / 318.1 MB Notification: Performance of SimCode: time 1.282e-06/0.4022, allocations: 3.938 kB / 412.9 MB, free: 5.738 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08933/0.4915, allocations: 26.71 MB / 439.6 MB, free: 11.26 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002253/0.4918, allocations: 272 kB / 439.9 MB, free: 10.9 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.286/2.777, allocations: 8 kB / 439.9 MB, free: 10.89 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1)