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.001479/0.001479, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001474/0.001474, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 60.12 kB / 307 MB, free: 0.5352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1035, allocations: 50.54 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007278/0.1109, allocations: 5.524 MB / 363.1 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003199/0.1141, allocations: 1.89 MB / 365 MB, free: 6.547 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005501/0.1147, allocations: 15.94 kB / 365 MB, free: 6.531 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001211/0.1159, allocations: 0.5213 MB / 365.5 MB, free: 6.008 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009789/0.1169, allocations: 390 kB / 365.9 MB, free: 5.625 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008826/0.1178, allocations: 367 kB / 366.3 MB, free: 5.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001112/0.119, allocations: 0.8887 MB / 367.2 MB, free: 4.379 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005681/0.1195, allocations: 348.8 kB / 367.5 MB, free: 4.031 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004901/0.12, allocations: 358.8 kB / 367.9 MB, free: 3.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005752/0.1206, allocations: 442.4 kB / 368.3 MB, free: 3.246 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001592/0.1208, allocations: 76 kB / 368.4 MB, free: 3.172 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002903/0.1211, allocations: 124 kB / 368.5 MB, free: 3.051 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004753/0.1216, allocations: 0.5882 MB / 369.1 MB, free: 2.461 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008628/0.1224, allocations: 0.7454 MB / 369.8 MB, free: 1.711 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1764/0.2988, allocations: 2.085 MB / 371.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.2989, allocations: 0.5625 kB / 371.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.2989, allocations: 0 / 371.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.385e-05/0.299, allocations: 1.5 kB / 371.9 MB, free: 13.29 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.00396/0.3029, allocations: 2.087 MB / 374 MB, free: 12.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.953e-05/0.303, allocations: 10.88 kB / 374 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001287/0.3031, allocations: 93.17 kB / 374.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003508/0.3035, allocations: 187.7 kB / 374.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00243/0.3059, allocations: 1.482 MB / 375.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002177/0.3062, allocations: 95.95 kB / 375.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.39e-05/0.3062, allocations: 50.22 kB / 375.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001009/0.3073, allocations: 0.5824 MB / 376.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.3073, allocations: 4 kB / 376.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.24e-05/0.3074, allocations: 22.75 kB / 376.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.396e-05/0.3074, allocations: 12.38 kB / 376.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006742/0.3081, allocations: 344.4 kB / 376.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004639/0.3127, allocations: 3.259 MB / 380.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001228/0.3139, allocations: 387.4 kB / 380.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005425/0.3145, allocations: 180.1 kB / 380.7 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.836e-05/0.3146, allocations: 10.22 kB / 380.7 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.756e-05/0.3146, allocations: 38.56 kB / 380.7 MB, free: 9.957 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 3.015e-06/0.3146, allocations: 0 / 380.7 MB, free: 9.957 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.002138/0.3168, allocations: 0.7019 MB / 381.4 MB, free: 9.629 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.667e-05/0.3168, allocations: 217 kB / 381.6 MB, free: 9.375 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004214/0.3211, allocations: 2.897 MB / 384.5 MB, free: 8.441 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.83e-05/0.3211, allocations: 31.98 kB / 384.6 MB, free: 8.406 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006522/0.3218, allocations: 0.7829 MB / 385.3 MB, free: 7.797 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.788e-05/0.3219, allocations: 78.73 kB / 385.4 MB, free: 7.738 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001303/0.322, allocations: 68.53 kB / 385.5 MB, free: 7.695 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.92e-05/0.3221, allocations: 322.2 kB / 385.8 MB, free: 7.387 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003695/0.3225, allocations: 125.5 kB / 385.9 MB, free: 7.348 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004259/0.3229, allocations: 290.8 kB / 386.2 MB, free: 7.109 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006822/0.3236, allocations: 365.7 kB / 386.6 MB, free: 6.887 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.3236, allocations: 1.125 kB / 386.6 MB, free: 6.887 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001266/0.3249, allocations: 0.561 MB / 387.1 MB, free: 6.656 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.3249, allocations: 6.844 kB / 387.1 MB, free: 6.656 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.3249, allocations: 3.969 kB / 387.1 MB, free: 6.656 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002882/0.3252, allocations: 61.8 kB / 387.2 MB, free: 6.633 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002957/0.3255, allocations: 74.88 kB / 387.3 MB, free: 6.629 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001403/0.3269, allocations: 1.722 MB / 389 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006192/0.3276, allocations: 60.11 kB / 389 MB, free: 4.984 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.007e-05/0.3276, allocations: 16.09 kB / 389.1 MB, free: 4.98 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.0009048/0.3285, allocations: 0.5784 MB / 389.6 MB, free: 4.715 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000258/0.3288, allocations: 169.1 kB / 389.8 MB, free: 4.621 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001211/0.33, allocations: 0.5122 MB / 390.3 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.33, allocations: 1.188 kB / 390.3 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.33, allocations: 1.344 kB / 390.3 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.33, allocations: 3.375 kB / 390.3 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003707/0.3337, allocations: 1.699 MB / 392 MB, free: 3.656 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.533e-06/0.3338, allocations: 7.406 kB / 392 MB, free: 3.652 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003538/0.3341, allocations: 44.88 kB / 392.1 MB, free: 3.648 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002795/0.3344, allocations: 50.42 kB / 392.1 MB, free: 3.629 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.911e-05/0.3345, allocations: 5.469 kB / 392.1 MB, free: 3.629 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001659/0.3361, allocations: 1.674 MB / 393.8 MB, free: 2.027 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/0.3362, allocations: 1.375 kB / 393.8 MB, free: 2.027 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002368/0.3385, allocations: 0.7088 MB / 394.5 MB, free: 1.664 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009881/0.3395, allocations: 387.4 kB / 394.9 MB, free: 1.418 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002303/0.3398, allocations: 4.125 kB / 394.9 MB, free: 1.418 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007202/0.3405, allocations: 47.78 kB / 394.9 MB, free: 1.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/0.3407, allocations: 31.86 kB / 395 MB, free: 1.402 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.607e-05/0.3407, allocations: 8.281 kB / 395 MB, free: 1.402 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.004927/0.3456, allocations: 2.076 MB / 397.1 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.7e-07/0.3457, allocations: 0 / 397.1 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001441/0.3471, allocations: 198.4 kB / 397.3 MB, free: 488 kB / 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.003673/0.3508, allocations: 1.514 MB / 398.8 MB, free: 15.43 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001547/0.3524, allocations: 448.1 kB / 399.2 MB, free: 15.19 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.151e-06/0.3524, allocations: 0 / 399.2 MB, free: 15.19 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007529/0.3532, allocations: 275.5 kB / 399.5 MB, free: 15 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001998/0.3552, allocations: 217.8 kB / 399.7 MB, free: 14.88 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04175/0.397, allocations: 20.1 MB / 419.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00193/0.3989, allocations: 1.359 MB / 421.1 MB, free: 8.836 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001047/0.4, allocations: 244.3 kB / 421.4 MB, free: 8.598 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001242/0.4013, allocations: 0.5735 MB / 422 MB, free: 8.027 MB / 334.1 MB Notification: Performance of SimCode: time 1.252e-06/0.4013, allocations: 0 / 422 MB, free: 8.027 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09674/0.4981, allocations: 32.16 MB / 454.1 MB, free: 8.102 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.78/12.28, allocations: 14.58 kB / 454.1 MB, free: 8.094 MB / 366.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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.csv --start-time 0 --stop-time 1200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1)