Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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_Cell,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001399/0.001399, allocations: 191.6 kB / 17.37 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.281/1.281, allocations: 226.5 MB / 244.7 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009706/0.0009707, allocations: 103.8 kB / 296.7 MB, free: 6.918 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002737/0.0002738, allocations: 7.984 kB / 356.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1896/0.1899, allocations: 51.29 MB / 408.1 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.003636/0.1935, allocations: 4.826 MB / 413 MB, free: 22.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001925/0.1955, allocations: 1.751 MB / 414.7 MB, free: 21.13 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002308/0.1957, allocations: 11.94 kB / 414.7 MB, free: 21.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006602/0.1964, allocations: 488.6 kB / 415.2 MB, free: 20.64 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004174/0.1968, allocations: 341.7 kB / 415.5 MB, free: 20.31 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004993/0.1974, allocations: 251.2 kB / 415.8 MB, free: 20.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005218/0.1979, allocations: 0.7995 MB / 416.6 MB, free: 19.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003377/0.1982, allocations: 287.7 kB / 416.8 MB, free: 18.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002093/0.1984, allocations: 290.9 kB / 417.1 MB, free: 18.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002619/0.1987, allocations: 350.6 kB / 417.5 MB, free: 18.36 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.658e-05/0.1988, allocations: 28 kB / 417.5 MB, free: 18.33 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000131/0.1989, allocations: 67.98 kB / 417.6 MB, free: 18.26 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002605/0.1992, allocations: 0.5415 MB / 418.1 MB, free: 17.72 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003351/0.1995, allocations: 0.6579 MB / 418.8 MB, free: 17.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008588/0.2004, allocations: 1.711 MB / 420.5 MB, free: 15.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2004, allocations: 8 kB / 420.5 MB, free: 15.33 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2004, allocations: 3.938 kB / 420.5 MB, free: 15.32 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.305e-05/0.2004, allocations: 0 / 420.5 MB, free: 15.32 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001912/0.2023, allocations: 1.815 MB / 422.3 MB, free: 13.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.2024, allocations: 8.031 kB / 422.3 MB, free: 13.44 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.726e-05/0.2025, allocations: 94.7 kB / 422.4 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001689/0.2027, allocations: 182.6 kB / 422.6 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001487/0.2042, allocations: 1.482 MB / 424.1 MB, free: 11.63 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001826/0.2043, allocations: 102.7 kB / 424.2 MB, free: 11.53 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.341e-05/0.2044, allocations: 48 kB / 424.2 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008223/0.2052, allocations: 0.5893 MB / 424.8 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.2053, allocations: 7.938 kB / 424.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.03e-05/0.2053, allocations: 20 kB / 424.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.2053, allocations: 12 kB / 424.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005798/0.2059, allocations: 351.8 kB / 425.2 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003167/0.2091, allocations: 3.293 MB / 428.5 MB, free: 7.047 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009642/0.2101, allocations: 426.4 kB / 428.9 MB, free: 6.621 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003866/0.2105, allocations: 192.8 kB / 429.1 MB, free: 6.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.922e-05/0.2105, allocations: 4 kB / 429.1 MB, free: 6.426 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.698e-05/0.2105, allocations: 46.5 kB / 429.1 MB, free: 6.371 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.743e-06/0.2105, allocations: 3.938 kB / 429.1 MB, free: 6.367 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001538/0.2121, allocations: 0.747 MB / 429.9 MB, free: 5.594 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.87e-05/0.2121, allocations: 217.6 kB / 430.1 MB, free: 5.332 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00254/0.2147, allocations: 2.9 MB / 433 MB, free: 2.387 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.262e-05/0.2147, allocations: 29.7 kB / 433 MB, free: 2.352 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004605/0.2152, allocations: 0.7776 MB / 433.8 MB, free: 1.566 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.39e-05/0.2152, allocations: 78.98 kB / 433.9 MB, free: 1.488 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.436e-05/0.2153, allocations: 8 kB / 433.9 MB, free: 1.48 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.916e-05/0.2153, allocations: 322 kB / 434.2 MB, free: 1.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002907/0.2156, allocations: 128.6 kB / 434.3 MB, free: 1.035 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003307/0.2159, allocations: 294 kB / 434.6 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005732/0.2165, allocations: 386.9 kB / 435 MB, free: 256 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.2165, allocations: 0 / 435 MB, free: 256 kB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001268/0.2178, allocations: 0.6329 MB / 435.6 MB, free: 15.6 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.2178, allocations: 8 kB / 435.6 MB, free: 15.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.2179, allocations: 4 kB / 435.6 MB, free: 15.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003002/0.2182, allocations: 61.02 kB / 435.7 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002917/0.2185, allocations: 79.83 kB / 435.8 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001793/0.2203, allocations: 1.58 MB / 437.4 MB, free: 13.74 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000469/0.2208, allocations: 71.66 kB / 437.4 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.532e-05/0.2208, allocations: 15.98 kB / 437.4 MB, free: 13.65 MB / 314.7 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 (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 prepare postOptimizeDAE: time 0.0007349/0.2215, allocations: 0.5834 MB / 438 MB, free: 13.06 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001814/0.2217, allocations: 165.9 kB / 438.2 MB, free: 12.89 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001169/0.2229, allocations: 0.5454 MB / 438.7 MB, free: 12.34 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.2229, allocations: 4 kB / 438.7 MB, free: 12.33 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-06/0.2229, allocations: 0 / 438.7 MB, free: 12.33 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.2229, allocations: 3.938 kB / 438.7 MB, free: 12.33 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002503/0.2254, allocations: 1.723 MB / 440.5 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.2255, allocations: 0 / 440.5 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002315/0.2257, allocations: 51.95 kB / 440.5 MB, free: 10.49 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001666/0.2259, allocations: 60.8 kB / 440.6 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.735e-05/0.2259, allocations: 0 / 440.6 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001339/0.2272, allocations: 1.533 MB / 442.1 MB, free: 8.758 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2273, allocations: 3.938 kB / 442.1 MB, free: 8.754 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001528/0.2288, allocations: 0.7488 MB / 442.9 MB, free: 7.98 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005447/0.2294, allocations: 391 kB / 443.2 MB, free: 7.578 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001361/0.2295, allocations: 8 kB / 443.2 MB, free: 7.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000468/0.23, allocations: 51.95 kB / 443.3 MB, free: 7.52 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.957e-05/0.2301, allocations: 43.94 kB / 443.3 MB, free: 7.477 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.891e-05/0.2301, allocations: 4 kB / 443.3 MB, free: 7.473 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002856/0.233, allocations: 2.071 MB / 445.4 MB, free: 5.379 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.233, allocations: 0 / 445.4 MB, free: 5.379 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007298/0.2337, allocations: 195.6 kB / 445.6 MB, free: 5.188 MB / 314.7 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 (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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002378/0.2361, allocations: 1.557 MB / 447.2 MB, free: 3.723 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001024/0.2372, allocations: 466.9 kB / 447.6 MB, free: 3.254 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.329e-06/0.2372, allocations: 3.938 kB / 447.6 MB, free: 3.25 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005239/0.2377, allocations: 286.9 kB / 447.9 MB, free: 2.957 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001068/0.2388, allocations: 209.8 kB / 448.1 MB, free: 2.75 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02561/0.2644, allocations: 12.77 MB / 460.9 MB, free: 5.332 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001097/0.2655, allocations: 1.359 MB / 462.2 MB, free: 3.941 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007416/0.2663, allocations: 0.5735 MB / 462.8 MB, free: 3.367 MB / 330.7 MB Notification: Performance of SimCode: time 7.52e-07/0.2663, allocations: 3.938 kB / 462.8 MB, free: 3.363 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.095/4.361, allocations: 32.19 MB / 495 MB, free: 3.121 MB / 362.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCV_Cell_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1)