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.001216/0.001216, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001588/0.001588, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.457/1.457, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 63.92 kB / 307 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1111, allocations: 50.54 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005011/0.1161, allocations: 4.016 MB / 361.6 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002718/0.1189, allocations: 2.069 MB / 363.7 MB, free: 7.891 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000343/0.1192, allocations: 11.94 kB / 363.7 MB, free: 7.879 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001124/0.1204, allocations: 0.5992 MB / 364.3 MB, free: 7.277 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006746/0.1211, allocations: 386 kB / 364.7 MB, free: 6.898 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005836/0.1217, allocations: 295.3 kB / 364.9 MB, free: 6.613 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001/0.1227, allocations: 0.9782 MB / 365.9 MB, free: 5.633 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000457/0.1231, allocations: 352.5 kB / 366.3 MB, free: 5.277 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004587/0.1236, allocations: 386.7 kB / 366.6 MB, free: 4.898 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006099/0.1242, allocations: 498.2 kB / 367.1 MB, free: 4.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001497/0.1244, allocations: 84 kB / 367.2 MB, free: 4.328 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000257/0.1247, allocations: 132 kB / 367.3 MB, free: 4.199 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003198/0.125, allocations: 470.7 kB / 367.8 MB, free: 3.738 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005876/0.1256, allocations: 0.6367 MB / 368.4 MB, free: 3.098 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001317/0.1269, allocations: 1.736 MB / 370.2 MB, free: 1.355 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.1269, allocations: 0 / 370.2 MB, free: 1.355 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1269, allocations: 0 / 370.2 MB, free: 1.355 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.478e-05/0.127, allocations: 0 / 370.2 MB, free: 1.355 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.1428/0.2697, allocations: 1.816 MB / 372 MB, free: 19.65 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/0.2698, allocations: 9.531 kB / 372 MB, free: 19.65 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001198/0.2699, allocations: 94.66 kB / 372.1 MB, free: 19.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000297/0.2702, allocations: 159.8 kB / 372.2 MB, free: 19.53 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001857/0.2721, allocations: 1.165 MB / 373.4 MB, free: 19.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003668/0.2725, allocations: 136.5 kB / 373.5 MB, free: 19.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001148/0.2726, allocations: 48.27 kB / 373.6 MB, free: 19.05 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00161/0.2742, allocations: 0.679 MB / 374.3 MB, free: 18.74 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.967e-05/0.2742, allocations: 0.7812 kB / 374.3 MB, free: 18.74 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.228e-05/0.2743, allocations: 25.25 kB / 374.3 MB, free: 18.72 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.432e-05/0.2744, allocations: 12.48 kB / 374.3 MB, free: 18.72 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00122/0.2756, allocations: 445.2 kB / 374.7 MB, free: 18.58 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005482/0.2811, allocations: 2.909 MB / 377.7 MB, free: 17.06 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001206/0.2823, allocations: 453.2 kB / 378.1 MB, free: 16.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007124/0.283, allocations: 318.1 kB / 378.4 MB, free: 16.8 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.134e-05/0.2831, allocations: 3.625 kB / 378.4 MB, free: 16.8 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/0.2831, allocations: 41.55 kB / 378.4 MB, free: 16.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 3.697e-06/0.2831, allocations: 2.25 kB / 378.4 MB, free: 16.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.00236/0.2855, allocations: 0.8001 MB / 379.3 MB, free: 16.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/0.2856, allocations: 265.4 kB / 379.5 MB, free: 16.08 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003319/0.2889, allocations: 2.247 MB / 381.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.644e-05/0.289, allocations: 31.89 kB / 381.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004798/0.2895, allocations: 0.6374 MB / 382.4 MB, free: 14.85 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.799e-05/0.2896, allocations: 112.7 kB / 382.5 MB, free: 14.76 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.2897, allocations: 76.94 kB / 382.6 MB, free: 14.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.6e-05/0.2898, allocations: 318.5 kB / 382.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003938/0.2902, allocations: 175.2 kB / 383.1 MB, free: 14.35 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004778/0.2907, allocations: 310 kB / 383.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008059/0.2915, allocations: 419.1 kB / 383.8 MB, free: 13.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.2915, allocations: 1 kB / 383.8 MB, free: 13.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001891/0.2934, allocations: 0.6615 MB / 384.5 MB, free: 13.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.647e-05/0.2934, allocations: 9.656 kB / 384.5 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.2934, allocations: 2.594 kB / 384.5 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003706/0.2938, allocations: 67.16 kB / 384.5 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004491/0.2943, allocations: 100.2 kB / 384.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001852/0.2961, allocations: 1.779 MB / 386.4 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007609/0.2969, allocations: 57.38 kB / 386.5 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.703e-05/0.297, allocations: 19.56 kB / 386.5 MB, free: 11.93 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.0008805/0.2979, allocations: 485.8 kB / 387 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001988/0.2981, allocations: 138.8 kB / 387.1 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000215/0.2983, allocations: 160.9 kB / 387.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.2983, allocations: 3.406 kB / 387.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.2983, allocations: 5.031 kB / 387.3 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.2983, allocations: 1.547 kB / 387.3 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002935/0.3013, allocations: 1.695 MB / 389 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.3013, allocations: 1.031 kB / 389 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000377/0.3017, allocations: 81.25 kB / 389 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001774/0.3018, allocations: 58.62 kB / 389.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.453e-05/0.3019, allocations: 7.812 kB / 389.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001128/0.303, allocations: 1.725 MB / 390.8 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.303, allocations: 1.125 kB / 390.8 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001588/0.3046, allocations: 0.8339 MB / 391.7 MB, free: 8.645 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004802/0.3051, allocations: 333.2 kB / 392 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001269/0.3053, allocations: 12.28 kB / 392 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004709/0.3057, allocations: 50.05 kB / 392.1 MB, free: 8.375 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.485e-05/0.3058, allocations: 29.05 kB / 392.1 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.437e-05/0.3059, allocations: 13.66 kB / 392.1 MB, free: 8.355 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001954/0.3078, allocations: 1.612 MB / 393.7 MB, free: 7.609 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3078, allocations: 0 / 393.7 MB, free: 7.609 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007576/0.3086, allocations: 204.4 kB / 393.9 MB, free: 7.574 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.002498/0.3111, allocations: 1.734 MB / 395.6 MB, free: 6.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00114/0.3123, allocations: 0.5428 MB / 396.2 MB, free: 6.102 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.3123, allocations: 3.094 kB / 396.2 MB, free: 6.102 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005359/0.3128, allocations: 332.3 kB / 396.5 MB, free: 5.879 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008785/0.3137, allocations: 209.6 kB / 396.7 MB, free: 5.762 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02086/0.3346, allocations: 15.5 MB / 412.2 MB, free: 6.34 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00118/0.3358, allocations: 1.253 MB / 413.5 MB, free: 5.059 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006989/0.3365, allocations: 223.8 kB / 413.7 MB, free: 4.836 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006577/0.3372, allocations: 479.3 kB / 414.2 MB, free: 4.367 MB / 318.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3372, allocations: 0 / 414.2 MB, free: 4.367 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06023/0.3975, allocations: 27.58 MB / 441.7 MB, free: 9.016 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.47/12.87, allocations: 6.5 kB / 441.7 MB, free: 9.012 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)