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.001147/0.001147, allocations: 118.8 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001284/0.001284, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 63.89 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3004/0.3019, allocations: 50.53 MB / 408.7 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.008732/0.3107, allocations: 5.55 MB / 414.3 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004066/0.3148, allocations: 1.878 MB / 416.2 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006566/0.3155, allocations: 19.88 kB / 416.2 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001259/0.3168, allocations: 0.5174 MB / 416.7 MB, free: 9.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001183/0.318, allocations: 389.9 kB / 417.1 MB, free: 9.188 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001005/0.3191, allocations: 363 kB / 417.4 MB, free: 8.836 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001284/0.3204, allocations: 0.9003 MB / 418.3 MB, free: 7.934 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005974/0.321, allocations: 336.8 kB / 418.7 MB, free: 7.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005342/0.3215, allocations: 366.7 kB / 419 MB, free: 7.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005934/0.3221, allocations: 446.4 kB / 419.5 MB, free: 6.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001497/0.3223, allocations: 76 kB / 419.5 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002632/0.3226, allocations: 124 kB / 419.7 MB, free: 6.598 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004248/0.323, allocations: 0.5843 MB / 420.2 MB, free: 6.012 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007139/0.3237, allocations: 0.7454 MB / 421 MB, free: 5.262 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001976/0.3257, allocations: 2.118 MB / 423.1 MB, free: 3.137 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.3257, allocations: 7.938 kB / 423.1 MB, free: 3.129 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3257, allocations: 0 / 423.1 MB, free: 3.129 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.915e-05/0.3258, allocations: 0 / 423.1 MB, free: 3.129 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.004069/0.3299, allocations: 2.079 MB / 425.2 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.3299, allocations: 8.031 kB / 425.2 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001278/0.3301, allocations: 90.7 kB / 425.3 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003431/0.3304, allocations: 186.6 kB / 425.5 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002983/0.3334, allocations: 1.509 MB / 427 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001343/0.3336, allocations: 62.7 kB / 427 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001195/0.3337, allocations: 51.94 kB / 427.1 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001654/0.3354, allocations: 0.5893 MB / 427.7 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.215e-05/0.3354, allocations: 0 / 427.7 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.921e-05/0.3355, allocations: 24 kB / 427.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.049e-05/0.3355, allocations: 12 kB / 427.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001213/0.3368, allocations: 347.7 kB / 428.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007771/0.3445, allocations: 3.235 MB / 431.3 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001803/0.3464, allocations: 385.6 kB / 431.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007823/0.3472, allocations: 188.8 kB / 431.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.056e-05/0.3473, allocations: 0 / 431.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.847e-05/0.3473, allocations: 34.56 kB / 431.9 MB, free: 10.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.805e-06/0.3473, allocations: 0 / 431.9 MB, free: 10.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.002573/0.3499, allocations: 0.6967 MB / 432.6 MB, free: 9.332 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/0.35, allocations: 209.6 kB / 432.8 MB, free: 9.078 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004607/0.3547, allocations: 2.904 MB / 435.7 MB, free: 6.129 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.6e-05/0.3548, allocations: 29.7 kB / 435.7 MB, free: 6.094 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007218/0.3555, allocations: 0.7854 MB / 436.5 MB, free: 5.297 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.91e-05/0.3556, allocations: 82.89 kB / 436.6 MB, free: 5.215 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/0.3557, allocations: 62.03 kB / 436.6 MB, free: 5.148 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.3558, allocations: 318 kB / 437 MB, free: 4.832 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003719/0.3562, allocations: 128.6 kB / 437.1 MB, free: 4.707 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004485/0.3567, allocations: 292.7 kB / 437.4 MB, free: 4.352 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007389/0.3574, allocations: 354.3 kB / 437.7 MB, free: 3.953 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.184e-06/0.3575, allocations: 4 kB / 437.7 MB, free: 3.949 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00142/0.3589, allocations: 0.552 MB / 438.3 MB, free: 3.387 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.3589, allocations: 4 kB / 438.3 MB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/0.3589, allocations: 4.375 kB / 438.3 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003174/0.3593, allocations: 80.73 kB / 438.4 MB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002996/0.3596, allocations: 75.89 kB / 438.4 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00178/0.3614, allocations: 1.72 MB / 440.2 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007184/0.3621, allocations: 55.58 kB / 440.2 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.178e-05/0.3622, allocations: 15.98 kB / 440.2 MB, free: 1.297 MB / 350.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.0009732/0.3631, allocations: 0.5834 MB / 440.8 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004042/0.3636, allocations: 161.9 kB / 441 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001476/0.365, allocations: 0.5142 MB / 441.5 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.3651, allocations: 0 / 441.5 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.3651, allocations: 0 / 441.5 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.3651, allocations: 3.984 kB / 441.5 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003608/0.3687, allocations: 1.688 MB / 443.2 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.3687, allocations: 128 / 443.2 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002628/0.369, allocations: 59.89 kB / 443.2 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001936/0.3692, allocations: 48.86 kB / 443.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.372e-05/0.3692, allocations: 4 kB / 443.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001493/0.3707, allocations: 1.673 MB / 445 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3707, allocations: 0 / 445 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001592/0.3723, allocations: 0.7146 MB / 445.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009228/0.3733, allocations: 382.9 kB / 446 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000238/0.3735, allocations: 8 kB / 446 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000527/0.3741, allocations: 35.95 kB / 446.1 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.3742, allocations: 31.97 kB / 446.1 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.916e-05/0.3742, allocations: 8 kB / 446.1 MB, free: 11.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003232/0.3775, allocations: 2.079 MB / 448.2 MB, free: 9.012 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3775, allocations: 0 / 448.2 MB, free: 9.012 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001014/0.3785, allocations: 203.6 kB / 448.4 MB, free: 8.812 MB / 366.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.002758/0.3813, allocations: 1.505 MB / 449.9 MB, free: 7.395 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001068/0.3823, allocations: 435 kB / 450.3 MB, free: 6.957 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.3824, allocations: 4.25 kB / 450.3 MB, free: 6.953 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005588/0.3829, allocations: 278.4 kB / 450.6 MB, free: 6.668 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00138/0.3843, allocations: 240.2 kB / 450.8 MB, free: 6.434 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02722/0.4116, allocations: 17.47 MB / 468.3 MB, free: 4.633 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00115/0.4128, allocations: 1.359 MB / 469.7 MB, free: 3.242 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006462/0.4134, allocations: 241.7 kB / 469.9 MB, free: 3.004 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007746/0.4142, allocations: 0.5735 MB / 470.5 MB, free: 2.43 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4142, allocations: 4 kB / 470.5 MB, free: 2.426 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0768/0.491, allocations: 33.31 MB / 0.492 GB, free: 1.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.81/14.3, allocations: 21.61 kB / 0.492 GB, free: 1.324 MB / 414.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)