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.001591/0.001591, allocations: 103.9 kB / 17.63 MB, free: 5.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001486/0.001486, allocations: 202.4 kB / 18.57 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 63.86 kB / 307 MB, free: 0.5625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1113, allocations: 50.53 MB / 357.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007884/0.1193, allocations: 5.538 MB / 363.1 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00324/0.1225, allocations: 1.882 MB / 365 MB, free: 6.578 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006884/0.1232, allocations: 15.94 kB / 365 MB, free: 6.562 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001326/0.1246, allocations: 0.5252 MB / 365.5 MB, free: 6.035 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001311/0.126, allocations: 386 kB / 365.9 MB, free: 5.656 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0011/0.1271, allocations: 366.9 kB / 366.3 MB, free: 5.301 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001372/0.1285, allocations: 0.8926 MB / 367.2 MB, free: 4.406 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006675/0.1292, allocations: 336.8 kB / 367.5 MB, free: 4.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007489/0.1299, allocations: 370.7 kB / 367.9 MB, free: 3.707 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007833/0.1307, allocations: 438.4 kB / 368.3 MB, free: 3.277 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000202/0.1309, allocations: 80 kB / 368.4 MB, free: 3.199 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003619/0.1313, allocations: 120 kB / 368.5 MB, free: 3.082 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000502/0.1318, allocations: 0.5843 MB / 369.1 MB, free: 2.496 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00104/0.1329, allocations: 0.7493 MB / 369.8 MB, free: 1.742 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1582/0.291, allocations: 2.091 MB / 371.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.2911, allocations: 0 / 371.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2911, allocations: 1.547 kB / 371.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.584e-05/0.2911, allocations: 0 / 371.9 MB, free: 13.29 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.002538/0.2937, allocations: 2.082 MB / 374 MB, free: 12.19 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.2937, allocations: 10 kB / 374 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.983e-05/0.2938, allocations: 87.98 kB / 374.1 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002001/0.294, allocations: 189.2 kB / 374.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00164/0.2957, allocations: 1.486 MB / 375.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001764/0.2958, allocations: 96.78 kB / 375.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.811e-05/0.2959, allocations: 49.56 kB / 375.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008059/0.2967, allocations: 0.5828 MB / 376.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.2967, allocations: 1.312 kB / 376.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.188e-05/0.2968, allocations: 22.75 kB / 376.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.2968, allocations: 13 kB / 376.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000611/0.2974, allocations: 348.8 kB / 376.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00329/0.3007, allocations: 3.257 MB / 380.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009511/0.3017, allocations: 387.4 kB / 380.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004039/0.3021, allocations: 182.6 kB / 380.7 MB, free: 9.996 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.355e-05/0.3021, allocations: 2.312 kB / 380.7 MB, free: 9.996 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.462e-05/0.3022, allocations: 40.91 kB / 380.7 MB, free: 9.957 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.263e-06/0.3022, allocations: 0 / 380.7 MB, free: 9.957 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001533/0.3037, allocations: 0.701 MB / 381.4 MB, free: 9.625 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.717e-05/0.3038, allocations: 210.8 kB / 381.6 MB, free: 9.375 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002854/0.3066, allocations: 2.896 MB / 384.5 MB, free: 8.441 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.063e-05/0.3066, allocations: 32.14 kB / 384.5 MB, free: 8.406 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004948/0.3071, allocations: 0.7831 MB / 385.3 MB, free: 7.797 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.269e-05/0.3072, allocations: 78.47 kB / 385.4 MB, free: 7.738 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.125e-05/0.3073, allocations: 69.53 kB / 385.5 MB, free: 7.695 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.699e-05/0.3073, allocations: 320.9 kB / 385.8 MB, free: 7.383 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002925/0.3076, allocations: 122.7 kB / 385.9 MB, free: 7.348 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003487/0.308, allocations: 301.9 kB / 386.2 MB, free: 7.105 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005742/0.3086, allocations: 361.7 kB / 386.6 MB, free: 6.883 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.3086, allocations: 1.188 kB / 386.6 MB, free: 6.883 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0009223/0.3095, allocations: 0.5532 MB / 387.1 MB, free: 6.656 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.3095, allocations: 8.562 kB / 387.1 MB, free: 6.656 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.3095, allocations: 3.219 kB / 387.1 MB, free: 6.656 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002175/0.3098, allocations: 68.45 kB / 387.2 MB, free: 6.633 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002565/0.31, allocations: 75.58 kB / 387.3 MB, free: 6.629 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001068/0.3111, allocations: 1.721 MB / 389 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003685/0.3115, allocations: 65.36 kB / 389 MB, free: 4.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.181e-05/0.3115, allocations: 13.3 kB / 389.1 MB, free: 4.98 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.0004955/0.312, allocations: 0.583 MB / 389.6 MB, free: 4.707 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00017/0.3122, allocations: 165.7 kB / 389.8 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009957/0.3132, allocations: 0.5142 MB / 390.3 MB, free: 4.438 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.3132, allocations: 2.156 kB / 390.3 MB, free: 4.438 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-06/0.3132, allocations: 1.219 kB / 390.3 MB, free: 4.438 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.3132, allocations: 4 kB / 390.3 MB, free: 4.434 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002064/0.3153, allocations: 1.695 MB / 392 MB, free: 3.656 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.3153, allocations: 5.312 kB / 392 MB, free: 3.652 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001999/0.3155, allocations: 54.44 kB / 392.1 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000122/0.3156, allocations: 47.03 kB / 392.1 MB, free: 3.629 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.699e-05/0.3157, allocations: 5.375 kB / 392.1 MB, free: 3.625 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009143/0.3166, allocations: 1.676 MB / 393.8 MB, free: 2.031 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.3166, allocations: 0 / 393.8 MB, free: 2.031 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001225/0.3178, allocations: 0.7077 MB / 394.5 MB, free: 1.668 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004252/0.3183, allocations: 386.2 kB / 394.9 MB, free: 1.422 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001256/0.3184, allocations: 10.12 kB / 394.9 MB, free: 1.418 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003898/0.3188, allocations: 44.05 kB / 394.9 MB, free: 1.414 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.659e-05/0.3189, allocations: 30.47 kB / 395 MB, free: 1.406 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.414e-05/0.3189, allocations: 4.469 kB / 395 MB, free: 1.406 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002025/0.3209, allocations: 2.079 MB / 397.1 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3209, allocations: 0 / 397.1 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006015/0.3215, allocations: 197.7 kB / 397.3 MB, free: 492 kB / 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.002024/0.3236, allocations: 1.511 MB / 398.8 MB, free: 15.44 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008778/0.3245, allocations: 450.1 kB / 399.2 MB, free: 15.2 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3245, allocations: 3 kB / 399.2 MB, free: 15.2 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004552/0.3249, allocations: 271.5 kB / 399.5 MB, free: 15.02 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009426/0.3259, allocations: 219.5 kB / 399.7 MB, free: 14.88 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02135/0.3473, allocations: 20.11 MB / 419.8 MB, free: 10.24 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008942/0.3482, allocations: 1.366 MB / 421.2 MB, free: 8.84 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000408/0.3486, allocations: 237.7 kB / 421.4 MB, free: 8.605 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005985/0.3492, allocations: 0.5735 MB / 422 MB, free: 8.035 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3492, allocations: 0 / 422 MB, free: 8.035 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2134/0.5626, allocations: 32.15 MB / 454.1 MB, free: 8.117 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.02/12.58, allocations: 7.922 kB / 454.1 MB, free: 8.109 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)