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.001621/0.001621, allocations: 122.2 kB / 17.79 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.001776/0.001776, allocations: 201.2 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.394/1.394, allocations: 227.4 MB / 247 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001767/0.001767, allocations: 63.89 kB / 358.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.2411, allocations: 50.56 MB / 408.8 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005791/0.2469, allocations: 4.023 MB / 412.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003698/0.2506, allocations: 2.057 MB / 414.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003536/0.251, allocations: 11.94 kB / 414.9 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001378/0.2524, allocations: 0.5943 MB / 415.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007453/0.2532, allocations: 382.1 kB / 415.9 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000667/0.2539, allocations: 291.4 kB / 416.2 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00112/0.255, allocations: 0.9892 MB / 417.2 MB, free: 9.102 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005059/0.2555, allocations: 356.5 kB / 417.5 MB, free: 8.746 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004381/0.256, allocations: 382.7 kB / 417.9 MB, free: 8.371 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006034/0.2566, allocations: 498.2 kB / 418.4 MB, free: 7.883 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001199/0.2567, allocations: 83.94 kB / 418.4 MB, free: 7.801 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002612/0.257, allocations: 144 kB / 418.6 MB, free: 7.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003799/0.2574, allocations: 474.7 kB / 419.1 MB, free: 7.195 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005574/0.2579, allocations: 0.6329 MB / 419.7 MB, free: 6.559 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00174/0.2597, allocations: 1.762 MB / 421.4 MB, free: 4.789 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.2597, allocations: 3.984 kB / 421.5 MB, free: 4.785 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.2597, allocations: 0 / 421.5 MB, free: 4.785 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.139e-05/0.2597, allocations: 0 / 421.5 MB, free: 4.785 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.002957/0.2627, allocations: 1.875 MB / 423.3 MB, free: 2.852 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.2627, allocations: 12.03 kB / 423.3 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001203/0.2629, allocations: 90.7 kB / 423.4 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002411/0.2631, allocations: 175.9 kB / 423.6 MB, free: 2.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001745/0.2649, allocations: 1.186 MB / 424.8 MB, free: 1.336 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001175/0.265, allocations: 100.7 kB / 424.9 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.635e-05/0.2651, allocations: 51.95 kB / 424.9 MB, free: 1.176 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001142/0.2662, allocations: 0.6556 MB / 425.6 MB, free: 484 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.2663, allocations: 3.938 kB / 425.6 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.436e-05/0.2663, allocations: 24 kB / 425.6 MB, free: 456 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.2663, allocations: 12 kB / 425.6 MB, free: 444 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007819/0.2671, allocations: 439.7 kB / 426.1 MB, free: 8 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004197/0.2713, allocations: 2.872 MB / 428.9 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009803/0.2723, allocations: 426.5 kB / 429.3 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006508/0.273, allocations: 316.7 kB / 429.7 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/0.273, allocations: 4 kB / 429.7 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.727e-05/0.2731, allocations: 46.53 kB / 429.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.813e-06/0.2731, allocations: 0 / 429.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.00185/0.2749, allocations: 0.7722 MB / 430.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001454/0.2751, allocations: 265 kB / 430.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002784/0.2779, allocations: 2.254 MB / 433 MB, free: 8.848 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.975e-05/0.278, allocations: 37.7 kB / 433 MB, free: 8.805 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005849/0.2785, allocations: 0.6357 MB / 433.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001003/0.2787, allocations: 115 kB / 433.8 MB, free: 8.047 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001414/0.2788, allocations: 78.03 kB / 433.9 MB, free: 7.961 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.2789, allocations: 325.9 kB / 434.2 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003447/0.2793, allocations: 160.6 kB / 434.3 MB, free: 7.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004446/0.2797, allocations: 296.8 kB / 434.6 MB, free: 7.137 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007228/0.2805, allocations: 396.3 kB / 435 MB, free: 6.719 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.2805, allocations: 0 / 435 MB, free: 6.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001363/0.2819, allocations: 0.6573 MB / 435.7 MB, free: 6.051 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.2819, allocations: 7.938 kB / 435.7 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.2819, allocations: 4 kB / 435.7 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002854/0.2822, allocations: 68.94 kB / 435.7 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003668/0.2826, allocations: 83.89 kB / 435.8 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001832/0.2844, allocations: 1.771 MB / 437.6 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004752/0.2849, allocations: 59.8 kB / 437.6 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.775e-05/0.2849, allocations: 12 kB / 437.7 MB, free: 3.91 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.0006314/0.2856, allocations: 489.5 kB / 438.1 MB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002163/0.2858, allocations: 139.1 kB / 438.3 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002694/0.2861, allocations: 165.5 kB / 438.4 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.2861, allocations: 4 kB / 438.4 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.2861, allocations: 0 / 438.4 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.2861, allocations: 4 kB / 438.4 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002678/0.2888, allocations: 1.673 MB / 440.1 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.2888, allocations: 128 / 440.1 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003346/0.2892, allocations: 75.83 kB / 440.2 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001898/0.2894, allocations: 60.88 kB / 440.3 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.574e-05/0.2894, allocations: 8 kB / 440.3 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00164/0.291, allocations: 1.716 MB / 442 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.2911, allocations: 8.031 kB / 442 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001551/0.2926, allocations: 0.806 MB / 442.8 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004999/0.2931, allocations: 340 kB / 443.1 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001182/0.2933, allocations: 8 kB / 443.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004524/0.2937, allocations: 47.95 kB / 443.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.662e-05/0.2938, allocations: 31.89 kB / 443.2 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-05/0.2938, allocations: 12 kB / 443.2 MB, free: 14.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002158/0.296, allocations: 1.608 MB / 444.8 MB, free: 12.47 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.296, allocations: 4 kB / 444.8 MB, free: 12.46 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000792/0.2968, allocations: 207.7 kB / 445 MB, free: 12.26 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.003503/0.3003, allocations: 1.708 MB / 446.7 MB, free: 10.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001103/0.3015, allocations: 0.4985 MB / 447.2 MB, free: 10.17 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.3015, allocations: 0.5625 kB / 447.2 MB, free: 10.17 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000546/0.302, allocations: 310.4 kB / 447.5 MB, free: 9.852 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001024/0.3031, allocations: 212.9 kB / 447.8 MB, free: 9.652 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02009/0.3232, allocations: 13.9 MB / 461.7 MB, free: 11.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001006/0.3242, allocations: 1.261 MB / 462.9 MB, free: 10.21 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005523/0.3248, allocations: 219.8 kB / 463.1 MB, free: 9.996 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006209/0.3254, allocations: 487.2 kB / 463.6 MB, free: 9.52 MB / 382.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3254, allocations: 0 / 463.6 MB, free: 9.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06784/0.3933, allocations: 28 MB / 491.6 MB, free: 13.76 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.72/14.11, allocations: 8.938 kB / 491.6 MB, free: 13.75 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)