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.001344/0.001344, allocations: 108 kB / 17.32 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001555/0.001555, allocations: 205.8 kB / 18.27 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 60.22 kB / 306.5 MB, free: 0.8555 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1026, allocations: 50.55 MB / 357.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006071/0.1087, allocations: 4.028 MB / 361.1 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00346/0.1122, allocations: 2.045 MB / 363.2 MB, free: 8.195 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006425/0.1129, allocations: 15.94 kB / 363.2 MB, free: 8.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00158/0.1145, allocations: 0.5645 MB / 363.7 MB, free: 7.613 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009103/0.1155, allocations: 350.6 kB / 364.1 MB, free: 7.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007439/0.1162, allocations: 259.2 kB / 364.3 MB, free: 7.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00128/0.1175, allocations: 0.9936 MB / 365.3 MB, free: 6.023 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005485/0.1181, allocations: 352.5 kB / 365.7 MB, free: 5.672 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005757/0.1187, allocations: 386.7 kB / 366.1 MB, free: 5.293 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007212/0.1194, allocations: 0.4905 MB / 366.5 MB, free: 4.801 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001839/0.1196, allocations: 80 kB / 366.6 MB, free: 4.723 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003493/0.12, allocations: 132 kB / 366.8 MB, free: 4.594 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003873/0.1203, allocations: 478.7 kB / 367.2 MB, free: 4.125 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007644/0.1211, allocations: 0.629 MB / 367.9 MB, free: 3.492 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001606/0.1227, allocations: 1.736 MB / 369.6 MB, free: 1.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1228, allocations: 0 / 369.6 MB, free: 1.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1228, allocations: 4 kB / 369.6 MB, free: 1.746 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.191e-05/0.1228, allocations: 0 / 369.6 MB, free: 1.746 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.18/0.3028, allocations: 1.812 MB / 371.4 MB, free: 19.55 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.402e-05/0.3029, allocations: 9.688 kB / 371.4 MB, free: 19.55 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000167/0.3031, allocations: 96.5 kB / 371.5 MB, free: 19.51 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000333/0.3034, allocations: 161.3 kB / 371.7 MB, free: 19.44 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001873/0.3053, allocations: 1.171 MB / 372.8 MB, free: 19.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003403/0.3056, allocations: 137.6 kB / 373 MB, free: 18.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.974e-05/0.3057, allocations: 48.91 kB / 373 MB, free: 18.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001199/0.3069, allocations: 0.6737 MB / 373.7 MB, free: 18.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.307, allocations: 1.969 kB / 373.7 MB, free: 18.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.101e-05/0.307, allocations: 26.03 kB / 373.7 MB, free: 18.71 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.404e-05/0.307, allocations: 16.23 kB / 373.7 MB, free: 18.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008782/0.3079, allocations: 445.7 kB / 374.2 MB, free: 18.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004116/0.3121, allocations: 2.891 MB / 377.1 MB, free: 17.05 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001074/0.3131, allocations: 453.1 kB / 377.5 MB, free: 16.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007109/0.3139, allocations: 325.7 kB / 377.8 MB, free: 16.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.216e-05/0.3139, allocations: 4.188 kB / 377.8 MB, free: 16.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.29e-05/0.3139, allocations: 38 kB / 377.9 MB, free: 16.74 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.954e-06/0.314, allocations: 3.531 kB / 377.9 MB, free: 16.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.002/0.316, allocations: 0.7984 MB / 378.7 MB, free: 16.38 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.4e-05/0.316, allocations: 266.5 kB / 378.9 MB, free: 16.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00276/0.3188, allocations: 2.239 MB / 381.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.245e-05/0.3188, allocations: 33.08 kB / 381.2 MB, free: 15.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004499/0.3193, allocations: 0.6437 MB / 381.8 MB, free: 14.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.319e-05/0.3194, allocations: 106 kB / 381.9 MB, free: 14.76 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001289/0.3195, allocations: 81.03 kB / 382 MB, free: 14.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.798e-05/0.3196, allocations: 323.1 kB / 382.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003995/0.32, allocations: 174.1 kB / 382.5 MB, free: 14.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004512/0.3204, allocations: 307 kB / 382.8 MB, free: 14.13 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007713/0.3212, allocations: 416.7 kB / 383.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.3212, allocations: 1.062 kB / 383.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001394/0.3226, allocations: 0.665 MB / 383.9 MB, free: 13.64 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.3227, allocations: 10 kB / 383.9 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.807e-06/0.3227, allocations: 3.266 kB / 383.9 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002917/0.323, allocations: 62.39 kB / 384 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004027/0.3234, allocations: 104.6 kB / 384.1 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001379/0.3248, allocations: 1.774 MB / 385.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000456/0.3253, allocations: 64.64 kB / 385.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.899e-05/0.3253, allocations: 16.19 kB / 385.9 MB, free: 11.92 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.0005407/0.3258, allocations: 490.5 kB / 386.4 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001644/0.326, allocations: 133.3 kB / 386.5 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001978/0.3262, allocations: 165.7 kB / 386.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.3262, allocations: 3.062 kB / 386.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.3262, allocations: 3.938 kB / 386.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.3262, allocations: 7.203 kB / 386.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002827/0.3291, allocations: 1.681 MB / 388.4 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.3291, allocations: 0.9688 kB / 388.4 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003805/0.3295, allocations: 75.36 kB / 388.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001866/0.3297, allocations: 60.81 kB / 388.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.232e-05/0.3297, allocations: 13.25 kB / 388.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001167/0.3309, allocations: 1.72 MB / 390.2 MB, free: 9.113 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3309, allocations: 0 / 390.2 MB, free: 9.113 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001534/0.3325, allocations: 0.8379 MB / 391.1 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004265/0.3329, allocations: 325.8 kB / 391.4 MB, free: 8.438 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000123/0.333, allocations: 16.39 kB / 391.4 MB, free: 8.426 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004698/0.3335, allocations: 54.33 kB / 391.5 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.44e-05/0.3336, allocations: 29.27 kB / 391.5 MB, free: 8.387 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.346e-05/0.3336, allocations: 11.31 kB / 391.5 MB, free: 8.383 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00182/0.3354, allocations: 1.607 MB / 393.1 MB, free: 7.641 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3355, allocations: 0 / 393.1 MB, free: 7.641 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006968/0.3362, allocations: 200.1 kB / 393.3 MB, free: 7.609 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.002586/0.3387, allocations: 1.754 MB / 395.1 MB, free: 6.453 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001344/0.3401, allocations: 0.548 MB / 395.6 MB, free: 6.141 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.3401, allocations: 5.5 kB / 395.6 MB, free: 6.137 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006363/0.3408, allocations: 330.3 kB / 395.9 MB, free: 5.918 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009414/0.3417, allocations: 207.3 kB / 396.1 MB, free: 5.801 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02156/0.3633, allocations: 15.77 MB / 411.9 MB, free: 6.266 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009041/0.3642, allocations: 1.261 MB / 413.2 MB, free: 4.98 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005652/0.3648, allocations: 211.8 kB / 413.4 MB, free: 4.77 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000564/0.3654, allocations: 479.3 kB / 413.8 MB, free: 4.301 MB / 318.1 MB Notification: Performance of SimCode: time 8.61e-07/0.3654, allocations: 4 kB / 413.8 MB, free: 4.297 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05031/0.4157, allocations: 27.29 MB / 441.1 MB, free: 9.254 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002332/0.416, allocations: 279.7 kB / 441.4 MB, free: 8.883 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.552/2.968, allocations: 0 / 441.4 MB, free: 8.883 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)