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.001808/0.001808, allocations: 106.8 kB / 16.92 MB, free: 5.773 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.001613/0.001613, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.335/1.335, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001123/0.001123, allocations: 47.36 kB / 300.7 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1015, allocations: 49.45 MB / 350.2 MB, free: 4.316 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007468/0.109, allocations: 5.48 MB / 355.6 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00326/0.1123, allocations: 1.723 MB / 357.4 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007462/0.1131, allocations: 11.94 kB / 357.4 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001403/0.1145, allocations: 0.5213 MB / 357.9 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001323/0.1159, allocations: 350.1 kB / 358.2 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001281/0.1172, allocations: 373.4 kB / 358.6 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001781/0.119, allocations: 0.8886 MB / 359.5 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008165/0.1198, allocations: 328.9 kB / 359.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006927/0.1206, allocations: 366.8 kB / 360.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006962/0.1213, allocations: 442.4 kB / 360.6 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001942/0.1215, allocations: 76 kB / 360.7 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004443/0.1219, allocations: 124 kB / 360.8 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006298/0.1226, allocations: 0.5844 MB / 361.4 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00125/0.1238, allocations: 0.7337 MB / 362.1 MB, free: 8.301 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002096/0.1259, allocations: 2.095 MB / 364.2 MB, free: 6.199 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.126, allocations: 0 / 364.2 MB, free: 6.199 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.126, allocations: 0 / 364.2 MB, free: 6.199 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.488e-05/0.126, allocations: 0 / 364.2 MB, free: 6.199 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.004199/0.1303, allocations: 2.075 MB / 366.3 MB, free: 4.062 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.1303, allocations: 16.02 kB / 366.3 MB, free: 4.047 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000113/0.1304, allocations: 86.72 kB / 366.4 MB, free: 3.953 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003011/0.1307, allocations: 186.6 kB / 366.6 MB, free: 3.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002231/0.133, allocations: 1.482 MB / 368.1 MB, free: 2.242 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002146/0.1332, allocations: 94.66 kB / 368.1 MB, free: 2.145 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.21e-05/0.1333, allocations: 48 kB / 368.2 MB, free: 2.098 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001003/0.1343, allocations: 0.5815 MB / 368.8 MB, free: 1.473 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.1343, allocations: 0 / 368.8 MB, free: 1.473 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.028e-05/0.1344, allocations: 24 kB / 368.8 MB, free: 1.449 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.172e-05/0.1344, allocations: 12 kB / 368.8 MB, free: 1.438 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007064/0.1351, allocations: 347.7 kB / 369.2 MB, free: 1.098 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.159/0.2942, allocations: 3.244 MB / 372.4 MB, free: 23.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001113/0.2953, allocations: 383.5 kB / 372.8 MB, free: 23.44 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005036/0.2958, allocations: 182.4 kB / 372.9 MB, free: 23.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.442e-05/0.2959, allocations: 6.562 kB / 373 MB, free: 23.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.343e-05/0.2959, allocations: 39.36 kB / 373 MB, free: 23.39 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.655e-06/0.2959, allocations: 0 / 373 MB, free: 23.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001995/0.2979, allocations: 0.7035 MB / 373.7 MB, free: 23.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.562e-05/0.298, allocations: 214.2 kB / 373.9 MB, free: 22.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004373/0.3024, allocations: 2.886 MB / 376.8 MB, free: 22.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.207e-05/0.3025, allocations: 32.08 kB / 376.8 MB, free: 21.99 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007128/0.3032, allocations: 0.7823 MB / 377.6 MB, free: 21.4 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.76e-05/0.3033, allocations: 74.64 kB / 377.7 MB, free: 21.35 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001492/0.3035, allocations: 67.7 kB / 377.7 MB, free: 21.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.811e-05/0.3036, allocations: 320.8 kB / 378.1 MB, free: 20.99 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003799/0.3039, allocations: 121.9 kB / 378.2 MB, free: 20.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004597/0.3044, allocations: 296 kB / 378.5 MB, free: 20.73 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007551/0.3052, allocations: 361.1 kB / 378.8 MB, free: 20.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.772e-06/0.3052, allocations: 6.578 kB / 378.8 MB, free: 20.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001395/0.3066, allocations: 0.5635 MB / 379.4 MB, free: 20.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.3066, allocations: 10.84 kB / 379.4 MB, free: 20.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.3067, allocations: 3.906 kB / 379.4 MB, free: 20.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002881/0.307, allocations: 61.39 kB / 379.5 MB, free: 20.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002927/0.3073, allocations: 75.02 kB / 379.5 MB, free: 20.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001517/0.3088, allocations: 1.725 MB / 381.3 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006503/0.3094, allocations: 66.25 kB / 381.3 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.074e-05/0.3095, allocations: 15.84 kB / 381.3 MB, free: 18.55 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.0009949/0.3105, allocations: 0.5743 MB / 381.9 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003622/0.3109, allocations: 162 kB / 382.1 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001496/0.3124, allocations: 0.517 MB / 382.6 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.3124, allocations: 2.844 kB / 382.6 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.604e-06/0.3124, allocations: 0.5625 kB / 382.6 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.3124, allocations: 1.266 kB / 382.6 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003716/0.3161, allocations: 1.68 MB / 384.3 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.3161, allocations: 0 / 384.3 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002307/0.3164, allocations: 46.62 kB / 384.3 MB, free: 17.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001967/0.3166, allocations: 60.59 kB / 384.4 MB, free: 17.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.495e-05/0.3166, allocations: 3.469 kB / 384.4 MB, free: 17.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001227/0.3179, allocations: 1.678 MB / 386.1 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.3179, allocations: 1.094 kB / 386.1 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001539/0.3194, allocations: 0.7192 MB / 386.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007145/0.3202, allocations: 374.6 kB / 387.1 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002661/0.3204, allocations: 7.312 kB / 387.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005349/0.321, allocations: 46.62 kB / 387.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/0.3211, allocations: 35.97 kB / 387.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/0.3211, allocations: 6.031 kB / 387.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.003667/0.3248, allocations: 2.066 MB / 389.3 MB, free: 14.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 3e-07/0.3248, allocations: 0 / 389.3 MB, free: 14.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001083/0.3259, allocations: 199.7 kB / 389.5 MB, free: 14.22 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.002436/0.3284, allocations: 1.516 MB / 391 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001088/0.3295, allocations: 443.5 kB / 391.4 MB, free: 13.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.3295, allocations: 5.562 kB / 391.5 MB, free: 13.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004869/0.33, allocations: 268 kB / 391.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001208/0.3312, allocations: 241 kB / 392 MB, free: 12.79 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02376/0.355, allocations: 20.03 MB / 412 MB, free: 9.383 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001189/0.3562, allocations: 1.361 MB / 413.3 MB, free: 7.996 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005682/0.3568, allocations: 241.7 kB / 413.6 MB, free: 7.758 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007244/0.3575, allocations: 0.5696 MB / 414.2 MB, free: 7.188 MB / 318.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3575, allocations: 0 / 414.2 MB, free: 7.188 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06675/0.4243, allocations: 32.08 MB / 446.2 MB, free: 7.359 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/11.96, allocations: 14.78 kB / 446.2 MB, free: 7.348 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)