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.001613/0.001613, allocations: 117.7 kB / 17.78 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001994/0.001994, allocations: 199.8 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2881/0.2893, allocations: 50.54 MB / 408.7 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006047/0.2954, allocations: 4.016 MB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003338/0.2988, allocations: 2.07 MB / 414.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000435/0.2992, allocations: 19.94 kB / 414.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001415/0.3007, allocations: 0.5875 MB / 415.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008649/0.3016, allocations: 394 kB / 415.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007949/0.3024, allocations: 283 kB / 416.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001277/0.3037, allocations: 0.9898 MB / 417.1 MB, free: 9.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005406/0.3042, allocations: 352.5 kB / 417.4 MB, free: 8.809 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005966/0.3048, allocations: 390.7 kB / 417.8 MB, free: 8.426 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007369/0.3056, allocations: 498.2 kB / 418.3 MB, free: 7.938 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000191/0.3058, allocations: 80 kB / 418.4 MB, free: 7.859 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003581/0.3061, allocations: 140 kB / 418.5 MB, free: 7.723 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003888/0.3065, allocations: 474.7 kB / 419 MB, free: 7.258 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007524/0.3073, allocations: 0.629 MB / 419.6 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001624/0.3089, allocations: 1.764 MB / 421.4 MB, free: 4.855 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.309, allocations: 0 / 421.4 MB, free: 4.855 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.309, allocations: 0 / 421.4 MB, free: 4.855 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.068e-05/0.309, allocations: 0 / 421.4 MB, free: 4.855 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.003713/0.3127, allocations: 1.818 MB / 423.2 MB, free: 2.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/0.3128, allocations: 15.97 kB / 423.2 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001321/0.3129, allocations: 98.64 kB / 423.3 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000303/0.3132, allocations: 167 kB / 423.5 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002023/0.3153, allocations: 1.173 MB / 424.6 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001172/0.3154, allocations: 104.7 kB / 424.7 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.344e-05/0.3155, allocations: 48 kB / 424.8 MB, free: 1.312 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001117/0.3166, allocations: 0.6557 MB / 425.4 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.3167, allocations: 0 / 425.4 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.277e-05/0.3167, allocations: 24 kB / 425.5 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.751e-05/0.3167, allocations: 12 kB / 425.5 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007527/0.3175, allocations: 435.7 kB / 425.9 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004284/0.3218, allocations: 2.872 MB / 428.8 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009658/0.3228, allocations: 428.6 kB / 429.2 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006288/0.3234, allocations: 316.7 kB / 429.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.014e-05/0.3235, allocations: 4 kB / 429.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.3235, allocations: 42.56 kB / 429.5 MB, free: 12.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 3.557e-06/0.3235, allocations: 0 / 429.5 MB, free: 12.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001835/0.3253, allocations: 0.7675 MB / 430.3 MB, free: 11.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001237/0.3255, allocations: 265 kB / 430.6 MB, free: 11.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002713/0.3282, allocations: 2.243 MB / 432.8 MB, free: 9.008 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.995e-05/0.3283, allocations: 37.7 kB / 432.9 MB, free: 8.965 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005142/0.3288, allocations: 0.6467 MB / 433.5 MB, free: 8.309 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.902e-05/0.3289, allocations: 98.55 kB / 433.6 MB, free: 8.211 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001322/0.329, allocations: 81.98 kB / 433.7 MB, free: 8.121 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.3291, allocations: 329.9 kB / 434 MB, free: 7.793 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003276/0.3295, allocations: 152.7 kB / 434.1 MB, free: 7.645 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004219/0.3299, allocations: 296.8 kB / 434.4 MB, free: 7.301 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006724/0.3306, allocations: 400.9 kB / 434.8 MB, free: 6.879 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-06/0.3306, allocations: 0 / 434.8 MB, free: 6.879 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001364/0.332, allocations: 0.6443 MB / 435.5 MB, free: 6.223 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.332, allocations: 11.88 kB / 435.5 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.332, allocations: 4 kB / 435.5 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002907/0.3323, allocations: 64.81 kB / 435.5 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003656/0.3327, allocations: 92 kB / 435.6 MB, free: 6.051 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001696/0.3344, allocations: 1.771 MB / 437.4 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005525/0.335, allocations: 55.52 kB / 437.5 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.828e-05/0.335, allocations: 12.09 kB / 437.5 MB, free: 4.078 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.0006521/0.3357, allocations: 0.4896 MB / 438 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001994/0.3359, allocations: 138.2 kB / 438.1 MB, free: 3.441 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000201/0.3361, allocations: 165.5 kB / 438.3 MB, free: 3.273 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.309e-06/0.3361, allocations: 4 kB / 438.3 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.3361, allocations: 0 / 438.3 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.72e-06/0.3361, allocations: 3.984 kB / 438.3 MB, free: 3.266 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002784/0.3389, allocations: 1.665 MB / 439.9 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3389, allocations: 0 / 439.9 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003309/0.3393, allocations: 72.02 kB / 440 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001989/0.3395, allocations: 60.88 kB / 440.1 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.815e-05/0.3395, allocations: 8 kB / 440.1 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00151/0.341, allocations: 1.716 MB / 441.8 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.341, allocations: 3.938 kB / 441.8 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001558/0.3426, allocations: 0.7974 MB / 442.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007328/0.3434, allocations: 335.4 kB / 442.9 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002028/0.3436, allocations: 8 kB / 442.9 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005391/0.3441, allocations: 51.94 kB / 443 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.3442, allocations: 23.97 kB / 443 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.963e-05/0.3443, allocations: 12 kB / 443 MB, free: 14.26 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002538/0.3468, allocations: 1.608 MB / 444.6 MB, free: 12.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3468, allocations: 0 / 444.6 MB, free: 12.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008999/0.3477, allocations: 203.6 kB / 444.8 MB, free: 12.46 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.00275/0.3505, allocations: 1.717 MB / 446.5 MB, free: 10.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001121/0.3516, allocations: 0.4986 MB / 447 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.3516, allocations: 0 / 447 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005551/0.3522, allocations: 307.2 kB / 447.3 MB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001317/0.3535, allocations: 207.8 kB / 447.5 MB, free: 9.844 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0201/0.3737, allocations: 13.85 MB / 461.4 MB, free: 11.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008657/0.3746, allocations: 1.257 MB / 462.6 MB, free: 10.46 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005306/0.3751, allocations: 219.8 kB / 462.9 MB, free: 10.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005707/0.3757, allocations: 483.2 kB / 463.3 MB, free: 9.773 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3757, allocations: 0 / 463.3 MB, free: 9.773 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0785/0.4542, allocations: 28.45 MB / 491.8 MB, free: 13.56 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.3/13.75, allocations: 14.92 kB / 491.8 MB, free: 13.55 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 & /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)