Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000953/0.000953, allocations: 196 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.233/1.233, allocations: 226.5 MB / 244.7 MB, free: 8.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007385/0.0007385, allocations: 97.75 kB / 296.7 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003416/0.0003417, allocations: 11.98 kB / 356.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1976/0.1979, allocations: 51.29 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.003976/0.202, allocations: 5.285 MB / 413.4 MB, free: 22.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002212/0.2042, allocations: 2.143 MB / 415.6 MB, free: 20.26 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002646/0.2045, allocations: 15.94 kB / 415.6 MB, free: 20.24 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008506/0.2054, allocations: 0.5712 MB / 416.1 MB, free: 19.67 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Electrical/Batteries/BatteryStacks/CellRCStack.mo:14:26-14:33:writable] Warning: 'each' used when modifying non-array element v. Notification: Performance of NFTyping.typeBindings: time 0.0004873/0.2058, allocations: 374.2 kB / 416.5 MB, free: 19.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005467/0.2064, allocations: 280 kB / 416.8 MB, free: 19.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007605/0.2072, allocations: 1.146 MB / 417.9 MB, free: 17.89 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000418/0.2076, allocations: 409.6 kB / 418.3 MB, free: 17.47 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000284/0.2079, allocations: 394.4 kB / 418.7 MB, free: 17.08 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003405/0.2082, allocations: 478 kB / 419.2 MB, free: 16.61 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.475e-05/0.2083, allocations: 48 kB / 419.2 MB, free: 16.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001828/0.2085, allocations: 104 kB / 419.3 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002688/0.2088, allocations: 0.5765 MB / 419.9 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004188/0.2092, allocations: 0.7668 MB / 420.7 MB, free: 15.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001065/0.2103, allocations: 2.139 MB / 422.8 MB, free: 12.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2103, allocations: 4 kB / 422.8 MB, free: 12.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2103, allocations: 3.938 kB / 422.8 MB, free: 12.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.073e-05/0.2103, allocations: 0 / 422.8 MB, free: 12.96 MB / 298.7 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.002438/0.2128, allocations: 2.046 MB / 424.9 MB, free: 10.85 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.2128, allocations: 12.02 kB / 424.9 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001121/0.2129, allocations: 110.7 kB / 425 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000206/0.2132, allocations: 210.3 kB / 425.2 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001787/0.215, allocations: 1.663 MB / 426.9 MB, free: 8.781 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002114/0.2152, allocations: 136.7 kB / 427 MB, free: 8.633 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.487e-05/0.2153, allocations: 67.89 kB / 427.1 MB, free: 8.566 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001169/0.2164, allocations: 0.8297 MB / 427.9 MB, free: 7.684 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.824e-05/0.2165, allocations: 12 kB / 427.9 MB, free: 7.672 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.512e-05/0.2165, allocations: 28 kB / 427.9 MB, free: 7.645 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.949e-06/0.2165, allocations: 12 kB / 427.9 MB, free: 7.633 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008554/0.2174, allocations: 0.5594 MB / 428.5 MB, free: 7.074 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004615/0.222, allocations: 4.051 MB / 432.5 MB, free: 2.902 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001128/0.2232, allocations: 0.5724 MB / 433.1 MB, free: 2.324 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006221/0.2238, allocations: 369.2 kB / 433.5 MB, free: 1.961 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.716e-05/0.2239, allocations: 4.281 kB / 433.5 MB, free: 1.957 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.276e-05/0.2239, allocations: 42.84 kB / 433.5 MB, free: 1.906 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 2.184e-06/0.2239, allocations: 0 / 433.5 MB, free: 1.906 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.001969/0.2259, allocations: 0.9933 MB / 434.5 MB, free: 0.8867 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.26e-05/0.2259, allocations: 265 kB / 434.8 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003405/0.2293, allocations: 3.164 MB / 437.9 MB, free: 13.37 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.911e-05/0.2294, allocations: 33.7 kB / 438 MB, free: 13.33 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000687/0.2301, allocations: 0.8685 MB / 438.8 MB, free: 12.45 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.361e-05/0.2302, allocations: 118.3 kB / 439 MB, free: 12.34 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.374e-05/0.2302, allocations: 8 kB / 439 MB, free: 12.33 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.097e-05/0.2303, allocations: 318 kB / 439.3 MB, free: 12.01 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000439/0.2308, allocations: 228.9 kB / 439.5 MB, free: 11.79 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005375/0.2313, allocations: 402.9 kB / 439.9 MB, free: 11.32 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008808/0.2322, allocations: 0.536 MB / 440.4 MB, free: 10.74 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.2322, allocations: 4 kB / 440.4 MB, free: 10.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001538/0.2338, allocations: 0.8396 MB / 441.3 MB, free: 9.883 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.631e-05/0.2338, allocations: 4 kB / 441.3 MB, free: 9.879 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/0.2338, allocations: 11.88 kB / 441.3 MB, free: 9.867 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002766/0.2341, allocations: 72.81 kB / 441.4 MB, free: 9.793 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004367/0.2346, allocations: 112 kB / 441.5 MB, free: 9.684 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001511/0.2361, allocations: 1.662 MB / 443.1 MB, free: 7.887 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004912/0.2366, allocations: 83.39 kB / 443.2 MB, free: 7.805 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.23e-05/0.2366, allocations: 20 kB / 443.2 MB, free: 7.785 MB / 314.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0007379/0.2374, allocations: 0.6616 MB / 443.9 MB, free: 7.113 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002009/0.2376, allocations: 185.6 kB / 444.1 MB, free: 6.93 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002564/0.2378, allocations: 218.6 kB / 444.3 MB, free: 6.715 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.2378, allocations: 4 kB / 444.3 MB, free: 6.711 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.2378, allocations: 0 / 444.3 MB, free: 6.711 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.2379, allocations: 3.984 kB / 444.3 MB, free: 6.707 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003104/0.241, allocations: 2.193 MB / 446.5 MB, free: 4.441 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.241, allocations: 3.984 kB / 446.5 MB, free: 4.438 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003868/0.2414, allocations: 83.95 kB / 446.6 MB, free: 4.355 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001885/0.2416, allocations: 64.75 kB / 446.6 MB, free: 4.289 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.896e-05/0.2416, allocations: 12 kB / 446.6 MB, free: 4.277 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001364/0.243, allocations: 1.596 MB / 448.2 MB, free: 2.543 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.243, allocations: 3.938 kB / 448.2 MB, free: 2.539 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001785/0.2448, allocations: 1.013 MB / 449.3 MB, free: 1.496 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006046/0.2454, allocations: 442.6 kB / 449.7 MB, free: 1.043 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001398/0.2456, allocations: 12 kB / 449.7 MB, free: 1.031 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005308/0.2461, allocations: 71.94 kB / 449.8 MB, free: 0.9609 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.2462, allocations: 39.94 kB / 449.8 MB, free: 0.9219 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.412e-05/0.2462, allocations: 12 kB / 449.8 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002661/0.2489, allocations: 2.259 MB / 452.1 MB, free: 14.63 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2489, allocations: 0 / 452.1 MB, free: 14.63 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007896/0.2497, allocations: 255.4 kB / 452.3 MB, free: 14.38 MB / 330.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.002875/0.2526, allocations: 1.933 MB / 454.3 MB, free: 12.58 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001234/0.2538, allocations: 0.6278 MB / 454.9 MB, free: 11.94 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.2539, allocations: 4 kB / 454.9 MB, free: 11.93 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006138/0.2545, allocations: 375 kB / 455.3 MB, free: 11.55 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001272/0.2558, allocations: 282.8 kB / 455.5 MB, free: 11.28 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02861/0.2844, allocations: 14.67 MB / 470.2 MB, free: 11.79 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00112/0.2855, allocations: 1.489 MB / 471.7 MB, free: 10.27 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008361/0.2864, allocations: 0.6438 MB / 472.3 MB, free: 9.625 MB / 346.7 MB Notification: Performance of SimCode: time 7.61e-07/0.2864, allocations: 0 / 472.3 MB, free: 9.625 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.329/4.616, allocations: 37.29 MB / 0.4977 GB, free: 4.27 MB / 378.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCV_CellRC_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1)