Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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_CellRC,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001063/0.001063, allocations: 104 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001098/0.001098, allocations: 209.7 kB / 18.14 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.4 MB / 246.3 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 63.67 kB / 306.4 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1093, allocations: 50.53 MB / 356.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.00867/0.118, allocations: 6.04 MB / 362.9 MB, free: 8.328 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003953/0.122, allocations: 2.272 MB / 365.2 MB, free: 6.051 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007809/0.1228, allocations: 15.94 kB / 365.2 MB, free: 6.035 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001677/0.1246, allocations: 0.5955 MB / 365.8 MB, free: 5.438 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001147/0.1257, allocations: 394.2 kB / 366.2 MB, free: 5.051 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001052/0.1268, allocations: 374.8 kB / 366.6 MB, free: 4.688 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001687/0.1285, allocations: 1.224 MB / 367.8 MB, free: 3.461 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007544/0.1293, allocations: 409.6 kB / 368.2 MB, free: 3.047 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008469/0.1301, allocations: 430.3 kB / 368.6 MB, free: 2.625 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000852/0.131, allocations: 0.5408 MB / 369.1 MB, free: 2.082 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001872/0.1312, allocations: 64 kB / 369.2 MB, free: 2.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004084/0.1316, allocations: 120 kB / 369.3 MB, free: 1.902 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005106/0.1321, allocations: 0.6075 MB / 369.9 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009606/0.1331, allocations: 0.8152 MB / 370.7 MB, free: 484 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1665/0.2996, allocations: 2.529 MB / 373.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.2996, allocations: 0 / 373.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2996, allocations: 0.5938 kB / 373.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.915e-05/0.2997, allocations: 1.875 kB / 373.3 MB, free: 13.22 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.004443/0.3041, allocations: 2.37 MB / 375.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.061e-05/0.3042, allocations: 10.31 kB / 375.7 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001578/0.3044, allocations: 113.2 kB / 375.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004011/0.3048, allocations: 211.6 kB / 376 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002534/0.3073, allocations: 1.659 MB / 377.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002503/0.3076, allocations: 136.5 kB / 377.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.986e-05/0.3077, allocations: 60.5 kB / 377.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001576/0.3093, allocations: 0.8281 MB / 378.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.071e-05/0.3093, allocations: 0 / 378.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.863e-05/0.3094, allocations: 27.03 kB / 378.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.61e-05/0.3094, allocations: 14.59 kB / 378.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001224/0.3106, allocations: 0.5532 MB / 379.3 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006297/0.317, allocations: 4.008 MB / 383.3 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/0.3182, allocations: 0.5368 MB / 383.8 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006821/0.3189, allocations: 361.4 kB / 384.1 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.106e-05/0.319, allocations: 3.719 kB / 384.2 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.379e-05/0.319, allocations: 40.66 kB / 384.2 MB, free: 8.855 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.234e-06/0.319, allocations: 0 / 384.2 MB, free: 8.855 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002301/0.3213, allocations: 0.9477 MB / 385.1 MB, free: 8.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.623e-05/0.3214, allocations: 262.2 kB / 385.4 MB, free: 8.117 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004228/0.3256, allocations: 3.164 MB / 388.6 MB, free: 7.094 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.653e-05/0.3257, allocations: 32.86 kB / 388.6 MB, free: 7.059 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006235/0.3263, allocations: 0.8603 MB / 389.5 MB, free: 6.375 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.406e-05/0.3264, allocations: 119.8 kB / 389.6 MB, free: 6.273 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001551/0.3266, allocations: 92.25 kB / 389.7 MB, free: 6.215 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.356e-05/0.3267, allocations: 326.7 kB / 390 MB, free: 5.895 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004449/0.3271, allocations: 211.7 kB / 390.2 MB, free: 5.793 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000513/0.3276, allocations: 394.4 kB / 390.6 MB, free: 5.469 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008437/0.3285, allocations: 0.5232 MB / 391.1 MB, free: 5.125 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.3285, allocations: 4.125 kB / 391.1 MB, free: 5.125 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001499/0.33, allocations: 0.7744 MB / 391.9 MB, free: 4.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.33, allocations: 9.438 kB / 391.9 MB, free: 4.727 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.854e-06/0.33, allocations: 4.125 kB / 391.9 MB, free: 4.727 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002857/0.3303, allocations: 67.28 kB / 392 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004405/0.3308, allocations: 116 kB / 392.1 MB, free: 4.672 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001291/0.3321, allocations: 1.63 MB / 393.7 MB, free: 3.098 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006527/0.3328, allocations: 74.34 kB / 393.8 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.686e-05/0.3328, allocations: 19.75 kB / 393.8 MB, free: 3.051 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (51): * Single equations (assignments): 50 * 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.0008466/0.3337, allocations: 0.6666 MB / 394.5 MB, free: 2.672 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002543/0.3339, allocations: 188.4 kB / 394.6 MB, free: 2.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002731/0.3342, allocations: 216.2 kB / 394.8 MB, free: 2.465 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.3342, allocations: 3 kB / 394.8 MB, free: 2.465 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.3342, allocations: 3.938 kB / 394.9 MB, free: 2.461 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.3342, allocations: 1.156 kB / 394.9 MB, free: 2.461 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00294/0.3372, allocations: 2.16 MB / 397 MB, free: 1.023 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.297e-06/0.3372, allocations: 3.688 kB / 397 MB, free: 1.023 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003506/0.3375, allocations: 80.97 kB / 397.1 MB, free: 1.004 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001612/0.3377, allocations: 57.38 kB / 397.2 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.952e-05/0.3377, allocations: 13.66 kB / 397.2 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00114/0.3389, allocations: 1.572 MB / 398.7 MB, free: 15.44 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3389, allocations: 3.375 kB / 398.7 MB, free: 15.44 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001799/0.3407, allocations: 0.9858 MB / 399.7 MB, free: 14.85 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006846/0.3414, allocations: 445 kB / 400.2 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001854/0.3416, allocations: 7.062 kB / 400.2 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000537/0.3422, allocations: 58.62 kB / 400.2 MB, free: 14.51 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/0.3423, allocations: 39.64 kB / 400.3 MB, free: 14.49 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.728e-05/0.3423, allocations: 12.72 kB / 400.3 MB, free: 14.48 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002916/0.3452, allocations: 2.259 MB / 402.5 MB, free: 12.95 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3452, allocations: 0 / 402.5 MB, free: 12.95 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009362/0.3462, allocations: 255.4 kB / 402.8 MB, free: 12.7 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,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 (29): * Single equations (assignments): 28 * 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.002914/0.3491, allocations: 1.901 MB / 404.7 MB, free: 10.96 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001241/0.3504, allocations: 0.6013 MB / 405.3 MB, free: 10.36 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.3504, allocations: 0 / 405.3 MB, free: 10.36 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006204/0.351, allocations: 364.6 kB / 405.6 MB, free: 10 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001329/0.3523, allocations: 277.8 kB / 405.9 MB, free: 9.73 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04912/0.4015, allocations: 23.23 MB / 429.1 MB, free: 1.211 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001345/0.4028, allocations: 1.502 MB / 430.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008565/0.4037, allocations: 299.1 kB / 430.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009706/0.4047, allocations: 0.6438 MB / 431.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of SimCode: time 1.413e-06/0.4047, allocations: 0 / 431.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06603/0.4708, allocations: 36.6 MB / 468.2 MB, free: 10.42 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002514/0.471, allocations: 280.9 kB / 468.4 MB, free: 10.06 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.522/2.993, allocations: 0 / 468.4 MB, free: 10.06 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1)