Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.CCCV_Cell,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008543/0.0008542, allocations: 93.45 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001016/0.001016, allocations: 205.2 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.217/1.217, allocations: 227.7 MB / 246.8 MB, free: 11.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002015/0.0002015, allocations: 11.98 kB / 307.8 MB, free: 0.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07675/0.07697, allocations: 51.52 MB / 359.4 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.004865/0.08188, allocations: 5.114 MB / 364.5 MB, free: 8.094 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002439/0.08434, allocations: 1.824 MB / 366.3 MB, free: 6.266 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002802/0.08464, allocations: 11.94 kB / 366.3 MB, free: 6.254 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008299/0.08548, allocations: 0.4944 MB / 366.8 MB, free: 5.758 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005738/0.08606, allocations: 338.5 kB / 367.1 MB, free: 5.426 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006321/0.08671, allocations: 354.8 kB / 367.5 MB, free: 5.082 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006899/0.0874, allocations: 0.834 MB / 368.3 MB, free: 4.246 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003835/0.0878, allocations: 295.6 kB / 368.6 MB, free: 3.953 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002572/0.08806, allocations: 290.8 kB / 368.9 MB, free: 3.668 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003561/0.08843, allocations: 390.4 kB / 369.3 MB, free: 3.285 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.712e-05/0.08849, allocations: 32 kB / 369.3 MB, free: 3.254 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001397/0.08864, allocations: 79.91 kB / 369.4 MB, free: 3.176 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003507/0.08899, allocations: 0.5336 MB / 369.9 MB, free: 2.641 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004654/0.08946, allocations: 0.6924 MB / 370.6 MB, free: 1.938 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1405/0.23, allocations: 1.985 MB / 372.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.23, allocations: 0 / 372.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.23, allocations: 3.031 kB / 372.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.799e-05/0.2301, allocations: 0 / 372.6 MB, free: 12.09 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002445/0.2325, allocations: 1.814 MB / 374.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.2326, allocations: 11.72 kB / 374.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.501e-05/0.2327, allocations: 89.55 kB / 374.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002068/0.2329, allocations: 186.2 kB / 374.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001738/0.2346, allocations: 1.49 MB / 376.2 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001991/0.2348, allocations: 103.8 kB / 376.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.671e-05/0.2349, allocations: 44.94 kB / 376.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009142/0.2358, allocations: 0.6004 MB / 376.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.2359, allocations: 2.172 kB / 376.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.116e-05/0.2359, allocations: 19.12 kB / 376.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.2359, allocations: 12.38 kB / 376.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006771/0.2366, allocations: 356.1 kB / 377.3 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003723/0.2403, allocations: 3.296 MB / 380.6 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001055/0.2414, allocations: 426.1 kB / 381 MB, free: 9.133 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004359/0.2419, allocations: 198.2 kB / 381.2 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.621e-05/0.2419, allocations: 3.219 kB / 381.2 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.025e-05/0.2419, allocations: 41.98 kB / 381.2 MB, free: 9.078 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.503e-06/0.2419, allocations: 0 / 381.2 MB, free: 9.078 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001672/0.2436, allocations: 0.755 MB / 382 MB, free: 8.836 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.963e-05/0.2437, allocations: 208 kB / 382.2 MB, free: 8.586 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003158/0.2468, allocations: 2.9 MB / 385.1 MB, free: 8.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.248e-05/0.2468, allocations: 31.73 kB / 385.1 MB, free: 8.145 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005101/0.2474, allocations: 0.784 MB / 385.9 MB, free: 7.535 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.738e-05/0.2474, allocations: 77.91 kB / 386 MB, free: 7.477 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.273e-05/0.2475, allocations: 35.05 kB / 386 MB, free: 7.449 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.737e-05/0.2475, allocations: 318.4 kB / 386.3 MB, free: 7.141 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003189/0.2478, allocations: 134.9 kB / 386.5 MB, free: 7.098 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003686/0.2482, allocations: 305.7 kB / 386.8 MB, free: 6.855 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006288/0.2488, allocations: 382.2 kB / 387.1 MB, free: 6.633 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.2489, allocations: 1.438 kB / 387.1 MB, free: 6.633 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001017/0.2499, allocations: 0.5831 MB / 387.7 MB, free: 6.395 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.2499, allocations: 5.281 kB / 387.7 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.2499, allocations: 4.906 kB / 387.7 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00024/0.2502, allocations: 68.45 kB / 387.8 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002747/0.2505, allocations: 87.62 kB / 387.9 MB, free: 6.367 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001128/0.2516, allocations: 1.579 MB / 389.5 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004313/0.252, allocations: 66.66 kB / 389.5 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.306e-05/0.2521, allocations: 15.66 kB / 389.6 MB, free: 4.879 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 4 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.0005482/0.2526, allocations: 0.5788 MB / 390.1 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000174/0.2528, allocations: 165.2 kB / 390.3 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001131/0.2539, allocations: 0.5484 MB / 390.8 MB, free: 4.336 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.2539, allocations: 3.375 kB / 390.8 MB, free: 4.336 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.254, allocations: 0 / 390.8 MB, free: 4.336 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.254, allocations: 2.391 kB / 390.8 MB, free: 4.336 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002273/0.2562, allocations: 1.732 MB / 392.6 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.2563, allocations: 0 / 392.6 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002137/0.2565, allocations: 53.36 kB / 392.6 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001385/0.2566, allocations: 48.8 kB / 392.7 MB, free: 3.527 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.798e-05/0.2566, allocations: 11.52 kB / 392.7 MB, free: 3.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009448/0.2576, allocations: 1.518 MB / 394.2 MB, free: 2.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2576, allocations: 0 / 394.2 MB, free: 2.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001324/0.2589, allocations: 0.7619 MB / 395 MB, free: 1.715 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004124/0.2594, allocations: 387 kB / 395.3 MB, free: 1.469 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001184/0.2595, allocations: 7.656 kB / 395.4 MB, free: 1.465 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000416/0.2599, allocations: 62.8 kB / 395.4 MB, free: 1.453 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.971e-05/0.26, allocations: 31.73 kB / 395.4 MB, free: 1.449 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.26, allocations: 9.688 kB / 395.5 MB, free: 1.445 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00213/0.2621, allocations: 2.071 MB / 397.5 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2622, allocations: 0 / 397.5 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006032/0.2628, allocations: 197.3 kB / 397.7 MB, free: 0.5859 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002117/0.2649, allocations: 1.556 MB / 399.3 MB, free: 15.53 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009293/0.2658, allocations: 459.3 kB / 399.7 MB, free: 15.29 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.2658, allocations: 1.375 kB / 399.7 MB, free: 15.29 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005058/0.2664, allocations: 284.6 kB / 400 MB, free: 15.11 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001026/0.2674, allocations: 221 kB / 400.2 MB, free: 14.99 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03046/0.2979, allocations: 20.5 MB / 420.7 MB, free: 9.547 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008891/0.2988, allocations: 1.363 MB / 422.1 MB, free: 8.152 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004833/0.2993, allocations: 237.7 kB / 422.3 MB, free: 7.918 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006129/0.2999, allocations: 0.5774 MB / 422.9 MB, free: 7.344 MB / 334.1 MB Notification: Performance of SimCode: time 5.92e-07/0.2999, allocations: 0 / 422.9 MB, free: 7.344 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04535/0.3453, allocations: 30.57 MB / 453.5 MB, free: 9.047 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001954/0.3455, allocations: 269.8 kB / 453.7 MB, free: 8.691 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.224/2.57, allocations: 3.094 kB / 453.7 MB, free: 8.691 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1)