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.001216/0.001216, allocations: 122 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001266/0.001266, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002506/0.002507, allocations: 67.88 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.2641, allocations: 50.55 MB / 408.8 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008209/0.2723, allocations: 6.058 MB / 414.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004206/0.2765, allocations: 2.294 MB / 417.2 MB, free: 9.062 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006009/0.2772, allocations: 15.94 kB / 417.2 MB, free: 9.047 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001598/0.2788, allocations: 0.6341 MB / 417.8 MB, free: 8.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009529/0.2798, allocations: 441.7 kB / 418.3 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009686/0.2808, allocations: 402.7 kB / 418.6 MB, free: 7.586 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001719/0.2825, allocations: 1.325 MB / 420 MB, free: 6.258 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007816/0.2833, allocations: 473.8 kB / 420.4 MB, free: 5.773 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006798/0.284, allocations: 498.3 kB / 420.9 MB, free: 5.285 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007468/0.2847, allocations: 0.5916 MB / 421.5 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00017/0.2849, allocations: 116 kB / 421.6 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003489/0.2853, allocations: 179.9 kB / 421.8 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000587/0.2859, allocations: 0.6583 MB / 422.5 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008334/0.2867, allocations: 0.8816 MB / 423.3 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002797/0.2895, allocations: 2.642 MB / 426 MB, free: 208 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.2896, allocations: 0 / 426 MB, free: 208 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.2896, allocations: 0 / 426 MB, free: 208 kB / 334.1 MB Notification: Performance of Transformations before backend: time 3.416e-05/0.2896, allocations: 4 kB / 426 MB, free: 204 kB / 334.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.004227/0.2938, allocations: 2.433 MB / 428.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.2939, allocations: 12.03 kB / 428.4 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001348/0.294, allocations: 106.7 kB / 428.5 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000349/0.2944, allocations: 227.5 kB / 428.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002659/0.2971, allocations: 1.693 MB / 430.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001452/0.2972, allocations: 104.7 kB / 430.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.2973, allocations: 67.95 kB / 430.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001561/0.2989, allocations: 0.8297 MB / 431.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/0.2989, allocations: 3.938 kB / 431.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.427e-05/0.299, allocations: 28 kB / 431.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.717e-05/0.299, allocations: 16 kB / 431.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001109/0.3001, allocations: 0.5477 MB / 432 MB, free: 9.934 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00669/0.3068, allocations: 3.998 MB / 436 MB, free: 5.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001361/0.3082, allocations: 0.5229 MB / 436.6 MB, free: 5.289 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008229/0.3091, allocations: 376.5 kB / 436.9 MB, free: 4.922 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.724e-05/0.3091, allocations: 8.266 kB / 436.9 MB, free: 4.914 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.431e-05/0.3092, allocations: 42.78 kB / 437 MB, free: 4.863 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.635e-06/0.3092, allocations: 0 / 437 MB, free: 4.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002546/0.3117, allocations: 0.9505 MB / 437.9 MB, free: 3.887 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001752/0.3119, allocations: 261 kB / 438.2 MB, free: 3.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00448/0.3164, allocations: 3.168 MB / 441.4 MB, free: 376 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.74e-05/0.3165, allocations: 33.7 kB / 441.4 MB, free: 336 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009472/0.3175, allocations: 0.8615 MB / 442.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001397/0.3176, allocations: 123 kB / 442.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001744/0.3178, allocations: 98.2 kB / 442.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.318, allocations: 322 kB / 442.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005/0.3185, allocations: 209 kB / 443 MB, free: 14.71 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006489/0.3191, allocations: 397.9 kB / 443.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001011/0.3202, allocations: 0.5282 MB / 443.9 MB, free: 13.67 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.3202, allocations: 0 / 443.9 MB, free: 13.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.00185/0.322, allocations: 0.7896 MB / 444.7 MB, free: 12.87 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.576e-05/0.3221, allocations: 8 kB / 444.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.3221, allocations: 4.078 kB / 444.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003381/0.3224, allocations: 68.81 kB / 444.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004654/0.3229, allocations: 111.9 kB / 444.9 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002182/0.3251, allocations: 1.802 MB / 446.7 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007291/0.3259, allocations: 75.59 kB / 446.8 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.966e-05/0.3259, allocations: 16 kB / 446.8 MB, free: 10.65 MB / 366.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.0009974/0.3269, allocations: 0.6577 MB / 447.4 MB, free: 9.984 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003817/0.3273, allocations: 198.7 kB / 447.6 MB, free: 9.789 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004387/0.3277, allocations: 214.6 kB / 447.8 MB, free: 9.574 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-06/0.3278, allocations: 4 kB / 447.8 MB, free: 9.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.3278, allocations: 0 / 447.8 MB, free: 9.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.3278, allocations: 3.984 kB / 447.8 MB, free: 9.566 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004147/0.3319, allocations: 2.159 MB / 450 MB, free: 7.336 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.332, allocations: 0 / 450 MB, free: 7.336 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004068/0.3324, allocations: 91.88 kB / 450.1 MB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002177/0.3326, allocations: 64.94 kB / 450.2 MB, free: 7.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.903e-05/0.3326, allocations: 7.984 kB / 450.2 MB, free: 7.172 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001845/0.3345, allocations: 1.744 MB / 451.9 MB, free: 5.289 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.3345, allocations: 0 / 451.9 MB, free: 5.289 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002144/0.3367, allocations: 0.9882 MB / 452.9 MB, free: 4.273 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008535/0.3376, allocations: 451.7 kB / 453.3 MB, free: 3.812 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003399/0.3379, allocations: 15.98 kB / 453.3 MB, free: 3.797 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006827/0.3386, allocations: 51.95 kB / 453.4 MB, free: 3.746 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001311/0.3387, allocations: 39.94 kB / 453.4 MB, free: 3.707 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.389e-05/0.3388, allocations: 12 kB / 453.4 MB, free: 3.695 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.004063/0.3428, allocations: 2.252 MB / 455.7 MB, free: 1.426 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3429, allocations: 0 / 455.7 MB, free: 1.426 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001065/0.3439, allocations: 267.5 kB / 456 MB, free: 1.164 MB / 366.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.004208/0.3482, allocations: 1.892 MB / 457.9 MB, free: 15.4 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001449/0.3496, allocations: 0.6081 MB / 458.5 MB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.3496, allocations: 0 / 458.5 MB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007255/0.3504, allocations: 359.1 kB / 458.8 MB, free: 14.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001799/0.3522, allocations: 301 kB / 459.1 MB, free: 14.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03361/0.3858, allocations: 19.77 MB / 478.9 MB, free: 10.05 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001576/0.3874, allocations: 1.493 MB / 480.4 MB, free: 8.527 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008575/0.3883, allocations: 295.2 kB / 480.7 MB, free: 8.234 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001089/0.3894, allocations: 0.6477 MB / 481.3 MB, free: 7.586 MB / 398.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3894, allocations: 3.938 kB / 481.3 MB, free: 7.582 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08651/0.476, allocations: 36.34 MB / 0.5055 GB, free: 3.496 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.74/15.22, allocations: 10.27 kB / 0.5055 GB, free: 3.488 MB / 430.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)