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.001112/0.001112, allocations: 108.2 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001135/0.001135, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 227.4 MB / 246.4 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 55.12 kB / 306.6 MB, free: 0.8398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09861/0.1001, allocations: 50.53 MB / 357.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007737/0.1079, allocations: 6.04 MB / 363.1 MB, free: 8.234 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004088/0.112, allocations: 2.264 MB / 365.4 MB, free: 5.965 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007743/0.1128, allocations: 15.94 kB / 365.4 MB, free: 5.949 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001687/0.1146, allocations: 0.6033 MB / 366 MB, free: 5.344 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001177/0.1158, allocations: 394.2 kB / 366.4 MB, free: 4.957 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00101/0.1168, allocations: 382.5 kB / 366.8 MB, free: 4.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001781/0.1186, allocations: 1.306 MB / 368.1 MB, free: 3.281 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007245/0.1194, allocations: 477.8 kB / 368.5 MB, free: 2.801 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007523/0.1201, allocations: 0.4944 MB / 369 MB, free: 2.305 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008296/0.121, allocations: 0.5838 MB / 369.6 MB, free: 1.719 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002266/0.1212, allocations: 116 kB / 369.7 MB, free: 1.605 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003851/0.1216, allocations: 176 kB / 369.9 MB, free: 1.434 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005875/0.1222, allocations: 0.6661 MB / 370.6 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1945/0.3167, allocations: 0.883 MB / 371.4 MB, free: 12.76 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003154/0.3198, allocations: 2.595 MB / 374 MB, free: 12.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.3199, allocations: 0 / 374 MB, free: 12.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3199, allocations: 3.281 kB / 374 MB, free: 12.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.534e-05/0.32, allocations: 0.6562 kB / 374 MB, free: 12.64 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.005221/0.3252, allocations: 2.37 MB / 376.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.3252, allocations: 10.53 kB / 376.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001359/0.3254, allocations: 106.2 kB / 376.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003599/0.3257, allocations: 212.5 kB / 376.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002642/0.3284, allocations: 1.664 MB / 378.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002577/0.3287, allocations: 135.6 kB / 378.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.3288, allocations: 63.42 kB / 378.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001524/0.3303, allocations: 0.8267 MB / 379.4 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.908e-05/0.3304, allocations: 4.531 kB / 379.4 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.471e-05/0.3304, allocations: 24.41 kB / 379.5 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.56e-05/0.3305, allocations: 15.91 kB / 379.5 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001082/0.3315, allocations: 0.5518 MB / 380 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006629/0.3382, allocations: 4.009 MB / 384 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001249/0.3395, allocations: 0.5393 MB / 384.6 MB, free: 8.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007066/0.3402, allocations: 360 kB / 384.9 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.457e-05/0.3402, allocations: 4.562 kB / 384.9 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.928e-05/0.3403, allocations: 42.12 kB / 385 MB, free: 8.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.234e-06/0.3403, allocations: 0 / 385 MB, free: 8.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.002765/0.343, allocations: 0.9474 MB / 385.9 MB, free: 7.668 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.955e-05/0.3431, allocations: 260.8 kB / 386.2 MB, free: 7.355 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005099/0.3482, allocations: 3.159 MB / 389.3 MB, free: 6.336 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001421/0.3484, allocations: 33.08 kB / 389.4 MB, free: 6.301 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000738/0.3492, allocations: 0.8571 MB / 390.2 MB, free: 5.609 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001115/0.3493, allocations: 120.7 kB / 390.3 MB, free: 5.508 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001642/0.3495, allocations: 96.41 kB / 390.4 MB, free: 5.445 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.976e-05/0.3495, allocations: 322.8 kB / 390.7 MB, free: 5.129 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004997/0.35, allocations: 205.5 kB / 390.9 MB, free: 5.031 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005231/0.3506, allocations: 403.6 kB / 391.3 MB, free: 4.699 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008679/0.3514, allocations: 0.5242 MB / 391.9 MB, free: 4.355 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.74e-06/0.3515, allocations: 1.156 kB / 391.9 MB, free: 4.355 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001771/0.3532, allocations: 0.7727 MB / 392.6 MB, free: 3.969 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.609e-05/0.3533, allocations: 13.53 kB / 392.6 MB, free: 3.961 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.669e-06/0.3533, allocations: 4.125 kB / 392.7 MB, free: 3.961 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003098/0.3536, allocations: 68.56 kB / 392.7 MB, free: 3.926 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004738/0.3541, allocations: 122.5 kB / 392.8 MB, free: 3.898 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00138/0.3555, allocations: 1.791 MB / 394.6 MB, free: 2.168 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009311/0.3564, allocations: 82.22 kB / 394.7 MB, free: 2.121 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.106e-05/0.3565, allocations: 18.22 kB / 394.7 MB, free: 2.117 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.001134/0.3576, allocations: 0.6548 MB / 395.4 MB, free: 1.746 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003481/0.358, allocations: 188.2 kB / 395.6 MB, free: 1.645 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003134/0.3583, allocations: 223.9 kB / 395.8 MB, free: 1.531 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.3583, allocations: 3.375 kB / 395.8 MB, free: 1.531 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3583, allocations: 2.625 kB / 395.8 MB, free: 1.531 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.3583, allocations: 1.156 kB / 395.8 MB, free: 1.531 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003168/0.3615, allocations: 2.161 MB / 398 MB, free: 96 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.3615, allocations: 0 / 398 MB, free: 96 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003973/0.3619, allocations: 78.81 kB / 398 MB, free: 80 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001787/0.3621, allocations: 62.39 kB / 398.1 MB, free: 52 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.21e-05/0.3621, allocations: 18.98 kB / 398.1 MB, free: 36 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001491/0.3636, allocations: 1.73 MB / 399.8 MB, free: 14.34 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.3637, allocations: 3.5 kB / 399.8 MB, free: 14.34 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00177/0.3654, allocations: 0.9894 MB / 400.8 MB, free: 13.75 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007445/0.3662, allocations: 449.7 kB / 401.3 MB, free: 13.43 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000199/0.3664, allocations: 8.094 kB / 401.3 MB, free: 13.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005533/0.367, allocations: 57.97 kB / 401.3 MB, free: 13.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.3671, allocations: 42.39 kB / 401.4 MB, free: 13.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.302e-05/0.3671, allocations: 8.5 kB / 401.4 MB, free: 13.38 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003182/0.3703, allocations: 2.261 MB / 403.6 MB, free: 11.89 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3703, allocations: 0 / 403.6 MB, free: 11.89 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009725/0.3713, allocations: 251.5 kB / 403.9 MB, free: 11.64 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.003116/0.3744, allocations: 1.896 MB / 405.8 MB, free: 9.898 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001411/0.3758, allocations: 0.6329 MB / 406.4 MB, free: 9.273 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3759, allocations: 0 / 406.4 MB, free: 9.273 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006578/0.3765, allocations: 371.7 kB / 406.8 MB, free: 8.906 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001558/0.3781, allocations: 288.5 kB / 407.1 MB, free: 8.625 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04755/0.4256, allocations: 23.23 MB / 430.3 MB, free: 100 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001143/0.4268, allocations: 1.493 MB / 431.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007686/0.4276, allocations: 295.2 kB / 432.1 MB, free: 14.28 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007941/0.4284, allocations: 0.6438 MB / 432.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of SimCode: time 8.41e-07/0.4284, allocations: 1.641 kB / 432.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07008/0.4985, allocations: 37.36 MB / 470.1 MB, free: 8.562 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000232/0.4988, allocations: 272.8 kB / 470.3 MB, free: 8.207 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.686/3.185, allocations: 3.938 kB / 470.4 MB, free: 8.203 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)