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.001202/0.001202, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001337/0.001337, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.4 MB / 247 MB, free: 10.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001746/0.001746, allocations: 59.89 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.2663, allocations: 50.56 MB / 408.8 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007347/0.2737, allocations: 5.545 MB / 414.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003519/0.2773, allocations: 1.869 MB / 416.2 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004058/0.2777, allocations: 12 kB / 416.2 MB, free: 9.996 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001195/0.2789, allocations: 0.5252 MB / 416.8 MB, free: 9.469 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000919/0.2799, allocations: 393.8 kB / 417.1 MB, free: 9.082 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008797/0.2808, allocations: 366.9 kB / 417.5 MB, free: 8.727 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001133/0.2819, allocations: 0.9003 MB / 418.4 MB, free: 7.824 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005434/0.2825, allocations: 332.8 kB / 418.7 MB, free: 7.484 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004891/0.283, allocations: 366.7 kB / 419.1 MB, free: 7.125 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005738/0.2836, allocations: 446.4 kB / 419.5 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001318/0.2837, allocations: 76 kB / 419.6 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000249/0.284, allocations: 128 kB / 419.7 MB, free: 6.488 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005759/0.2846, allocations: 0.5921 MB / 420.3 MB, free: 5.895 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006856/0.2853, allocations: 0.7377 MB / 421.1 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002265/0.2875, allocations: 2.132 MB / 423.2 MB, free: 3.012 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.2876, allocations: 0 / 423.2 MB, free: 3.012 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2876, allocations: 0 / 423.2 MB, free: 3.012 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.904e-05/0.2876, allocations: 0 / 423.2 MB, free: 3.012 MB / 334.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.003749/0.2914, allocations: 2.149 MB / 425.3 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.158e-05/0.2914, allocations: 8.031 kB / 425.3 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001337/0.2916, allocations: 94.7 kB / 425.4 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003117/0.2919, allocations: 195.7 kB / 425.6 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002426/0.2943, allocations: 1.515 MB / 427.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001006/0.2944, allocations: 66.7 kB / 427.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.176e-05/0.2945, allocations: 48 kB / 427.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001148/0.2957, allocations: 0.5815 MB / 427.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.2957, allocations: 3.938 kB / 427.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.355e-05/0.2958, allocations: 23.98 kB / 427.9 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.2958, allocations: 12 kB / 427.9 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000789/0.2966, allocations: 347.8 kB / 428.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004969/0.3016, allocations: 3.255 MB / 431.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001184/0.3028, allocations: 374.5 kB / 431.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005295/0.3033, allocations: 189.9 kB / 432 MB, free: 9.887 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.96e-05/0.3034, allocations: 0 / 432 MB, free: 9.887 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.715e-05/0.3034, allocations: 38.55 kB / 432.1 MB, free: 9.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.453e-06/0.3034, allocations: 0 / 432.1 MB, free: 9.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.002086/0.3055, allocations: 0.7051 MB / 432.8 MB, free: 9.109 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000133/0.3057, allocations: 213.6 kB / 433 MB, free: 8.852 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004333/0.31, allocations: 2.904 MB / 435.9 MB, free: 5.902 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.704e-05/0.3101, allocations: 29.7 kB / 435.9 MB, free: 5.867 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008982/0.311, allocations: 0.7861 MB / 436.7 MB, free: 5.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001087/0.3111, allocations: 87.31 kB / 436.8 MB, free: 4.984 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001438/0.3113, allocations: 69.97 kB / 436.8 MB, free: 4.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.3115, allocations: 318 kB / 437.2 MB, free: 4.594 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004124/0.3119, allocations: 120.6 kB / 437.3 MB, free: 4.477 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004848/0.3124, allocations: 288.8 kB / 437.6 MB, free: 4.125 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007586/0.3132, allocations: 357.4 kB / 437.9 MB, free: 3.727 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.284e-06/0.3132, allocations: 4.062 kB / 437.9 MB, free: 3.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001472/0.3147, allocations: 0.5751 MB / 438.5 MB, free: 3.137 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.3147, allocations: 4 kB / 438.5 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.3147, allocations: 4 kB / 438.5 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002873/0.315, allocations: 56.83 kB / 438.5 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003023/0.3153, allocations: 84.02 kB / 438.6 MB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001958/0.3173, allocations: 1.72 MB / 440.3 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000681/0.318, allocations: 59.7 kB / 440.4 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.936e-05/0.318, allocations: 12 kB / 440.4 MB, free: 1.062 MB / 350.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.0009425/0.319, allocations: 0.5913 MB / 441 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002846/0.3193, allocations: 174.8 kB / 441.2 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001319/0.3206, allocations: 0.5103 MB / 441.7 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.69e-06/0.3206, allocations: 0 / 441.7 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.195e-06/0.3206, allocations: 8.062 kB / 441.7 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.3206, allocations: 0 / 441.7 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002911/0.3235, allocations: 1.692 MB / 443.4 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.3236, allocations: 32 / 443.4 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000242/0.3238, allocations: 55.91 kB / 443.4 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001862/0.324, allocations: 44.83 kB / 443.5 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.433e-05/0.3241, allocations: 7.984 kB / 443.5 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001677/0.3258, allocations: 1.666 MB / 445.2 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3258, allocations: 0 / 445.2 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001732/0.3275, allocations: 0.7197 MB / 445.9 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006865/0.3282, allocations: 391.9 kB / 446.3 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001373/0.3284, allocations: 4 kB / 446.3 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004217/0.3288, allocations: 43.95 kB / 446.3 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.3289, allocations: 35.95 kB / 446.3 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.827e-05/0.3289, allocations: 4 kB / 446.4 MB, free: 10.85 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003069/0.332, allocations: 2.079 MB / 448.4 MB, free: 8.746 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.332, allocations: 0 / 448.4 MB, free: 8.746 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009076/0.3329, allocations: 203.7 kB / 448.6 MB, free: 8.547 MB / 366.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.003255/0.3362, allocations: 1.525 MB / 450.2 MB, free: 7.113 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001131/0.3374, allocations: 446.5 kB / 450.6 MB, free: 6.664 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.657e-06/0.3374, allocations: 4 kB / 450.6 MB, free: 6.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005685/0.338, allocations: 263.2 kB / 450.9 MB, free: 6.391 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001184/0.3391, allocations: 229.6 kB / 451.1 MB, free: 6.164 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02805/0.3672, allocations: 17.53 MB / 468.6 MB, free: 4.293 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00122/0.3685, allocations: 1.359 MB / 470 MB, free: 2.902 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000666/0.3691, allocations: 245.6 kB / 470.2 MB, free: 2.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008063/0.37, allocations: 0.5813 MB / 470.8 MB, free: 2.078 MB / 382.1 MB Notification: Performance of SimCode: time 7.81e-07/0.37, allocations: 0 / 470.8 MB, free: 2.078 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08211/0.4521, allocations: 32.76 MB / 0.4917 GB, free: 1.551 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.45/14.9, allocations: 11.78 kB / 0.4918 GB, free: 1.539 MB / 414.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1)