Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0008525/0.0008524, allocations: 88.58 kB / 16.65 MB, free: 6.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 184.4 kB / 17.57 MB, free: 5.875 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.542/1.542, allocations: 223.3 MB / 241.6 MB, free: 200 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003664/0.0003666, allocations: 4 kB / 301.5 MB, free: 6.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1199, allocations: 50.41 MB / 351.9 MB, free: 3.602 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006878/0.1269, allocations: 5.065 MB / 357 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003341/0.1302, allocations: 1.661 MB / 358.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006478/0.1309, allocations: 11.94 kB / 358.7 MB, free: 12.83 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001263/0.1322, allocations: 0.4983 MB / 359.2 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001043/0.1333, allocations: 306.6 kB / 359.5 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001084/0.1344, allocations: 347 kB / 359.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001395/0.1358, allocations: 0.8378 MB / 360.6 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006568/0.1365, allocations: 283.7 kB / 360.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006353/0.1371, allocations: 290.8 kB / 361.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007366/0.1379, allocations: 386.4 kB / 361.6 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001279/0.138, allocations: 36 kB / 361.6 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002903/0.1383, allocations: 75.97 kB / 361.7 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005022/0.1388, allocations: 0.5336 MB / 362.2 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000926/0.1397, allocations: 0.6885 MB / 362.9 MB, free: 8.562 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002164/0.1419, allocations: 1.985 MB / 364.9 MB, free: 6.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1419, allocations: 0 / 364.9 MB, free: 6.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1419, allocations: 0 / 364.9 MB, free: 6.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.329e-05/0.142, allocations: 0 / 364.9 MB, free: 6.57 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.003865/0.1459, allocations: 1.819 MB / 366.7 MB, free: 4.691 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.1459, allocations: 8.031 kB / 366.7 MB, free: 4.684 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002073/0.1462, allocations: 94.7 kB / 366.8 MB, free: 4.582 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000557/0.1467, allocations: 182.6 kB / 367 MB, free: 4.402 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002774/0.1495, allocations: 1.482 MB / 368.5 MB, free: 2.875 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002633/0.1498, allocations: 98.67 kB / 368.6 MB, free: 2.773 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.822e-05/0.1499, allocations: 44 kB / 368.6 MB, free: 2.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00116/0.1511, allocations: 0.6011 MB / 369.2 MB, free: 2.086 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.1511, allocations: 3.938 kB / 369.2 MB, free: 2.082 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.181e-05/0.1511, allocations: 20 kB / 369.2 MB, free: 2.062 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.1512, allocations: 12 kB / 369.3 MB, free: 2.051 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000735/0.1519, allocations: 355.8 kB / 369.6 MB, free: 1.699 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2078/0.3597, allocations: 3.289 MB / 372.9 MB, free: 22.63 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001428/0.3612, allocations: 428.8 kB / 373.3 MB, free: 22.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000578/0.3618, allocations: 199.2 kB / 373.5 MB, free: 22.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.557e-05/0.3618, allocations: 6.438 kB / 373.5 MB, free: 22.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.85e-05/0.3619, allocations: 37 kB / 373.5 MB, free: 22.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 3.115e-06/0.3619, allocations: 0 / 373.5 MB, free: 22.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.002443/0.3643, allocations: 0.7515 MB / 374.3 MB, free: 22.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/0.3645, allocations: 211.3 kB / 374.5 MB, free: 22.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005074/0.3695, allocations: 2.893 MB / 377.4 MB, free: 21.67 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.35e-05/0.3696, allocations: 34.34 kB / 377.4 MB, free: 21.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007524/0.3704, allocations: 0.7825 MB / 378.2 MB, free: 21.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.872e-05/0.3705, allocations: 71.94 kB / 378.3 MB, free: 20.98 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.093e-05/0.3705, allocations: 34.89 kB / 378.3 MB, free: 20.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.339e-05/0.3706, allocations: 321.2 kB / 378.6 MB, free: 20.64 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003685/0.371, allocations: 131.2 kB / 378.8 MB, free: 20.6 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005044/0.3715, allocations: 297.7 kB / 379.1 MB, free: 20.37 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007567/0.3723, allocations: 381.6 kB / 379.4 MB, free: 20.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/0.3723, allocations: 1 kB / 379.4 MB, free: 20.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001345/0.3736, allocations: 0.5823 MB / 380 MB, free: 19.88 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.3737, allocations: 12.2 kB / 380 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.3737, allocations: 4.281 kB / 380 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003191/0.374, allocations: 60.09 kB / 380.1 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003258/0.3744, allocations: 80.3 kB / 380.2 MB, free: 19.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001569/0.3759, allocations: 1.578 MB / 381.7 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005188/0.3765, allocations: 74.28 kB / 381.8 MB, free: 18.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.74e-05/0.3765, allocations: 11 kB / 381.8 MB, free: 18.35 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.0008726/0.3774, allocations: 0.5789 MB / 382.4 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002358/0.3776, allocations: 164.5 kB / 382.6 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001341/0.379, allocations: 0.5454 MB / 383.1 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.379, allocations: 2.75 kB / 383.1 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.974e-06/0.379, allocations: 1.562 kB / 383.1 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.379, allocations: 2.812 kB / 383.1 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003332/0.3823, allocations: 1.728 MB / 384.8 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.3824, allocations: 0 / 384.8 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002576/0.3826, allocations: 50.41 kB / 384.9 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001911/0.3828, allocations: 49.66 kB / 384.9 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.277e-05/0.3829, allocations: 11.42 kB / 385 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001307/0.3842, allocations: 1.528 MB / 386.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.3842, allocations: 1.734 kB / 386.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001724/0.3859, allocations: 0.7572 MB / 387.2 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005965/0.3865, allocations: 384.3 kB / 387.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001216/0.3867, allocations: 11.41 kB / 387.6 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004776/0.3872, allocations: 58.39 kB / 387.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001429/0.3873, allocations: 28.27 kB / 387.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.407e-05/0.3873, allocations: 6.375 kB / 387.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.003575/0.3909, allocations: 2.068 MB / 389.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3909, allocations: 0 / 389.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001112/0.392, allocations: 197.5 kB / 390 MB, free: 14.16 MB / 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.002649/0.3947, allocations: 1.567 MB / 391.5 MB, free: 13.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001252/0.396, allocations: 460.2 kB / 392 MB, free: 12.97 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.396, allocations: 1.375 kB / 392 MB, free: 12.97 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000597/0.3966, allocations: 285.9 kB / 392.3 MB, free: 12.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0013/0.3979, allocations: 213.8 kB / 392.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03249/0.4304, allocations: 20.43 MB / 412.9 MB, free: 8.605 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00104/0.4315, allocations: 1.355 MB / 414.3 MB, free: 7.223 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006223/0.4321, allocations: 245.7 kB / 414.5 MB, free: 6.98 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007323/0.4329, allocations: 0.5657 MB / 415.1 MB, free: 6.414 MB / 318.1 MB Notification: Performance of SimCode: time 1.213e-06/0.4329, allocations: 3.938 kB / 415.1 MB, free: 6.41 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06134/0.4942, allocations: 30.5 MB / 445.6 MB, free: 8.199 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002448/0.4945, allocations: 272.3 kB / 445.8 MB, free: 7.844 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.689/3.184, allocations: 4 kB / 445.8 MB, free: 7.84 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1)