Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.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_Stack,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0011/0.0011, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001231/0.001231, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.267, allocations: 50.53 MB / 408.7 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01091/0.278, allocations: 10.09 MB / 418.8 MB, free: 7.414 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005238/0.2833, allocations: 3.626 MB / 422.5 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008697/0.2842, allocations: 27.88 kB / 422.5 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002263/0.2865, allocations: 1.179 MB / 423.7 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001163/0.2877, allocations: 0.6763 MB / 424.3 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009742/0.2887, allocations: 494.5 kB / 424.8 MB, free: 1.406 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006818/0.2955, allocations: 7.333 MB / 432.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004329/0.2998, allocations: 4.478 MB / 436.6 MB, free: 5.492 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003254/0.3031, allocations: 2.863 MB / 439.5 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003637/0.3068, allocations: 2.927 MB / 442.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001371/0.3082, allocations: 0.6797 MB / 443.1 MB, free: 15 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001517/0.3097, allocations: 0.7265 MB / 443.8 MB, free: 14.28 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003695/0.3134, allocations: 5.822 MB / 449.7 MB, free: 8.441 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007736/0.3212, allocations: 7.187 MB / 456.8 MB, free: 1.215 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01931/0.3405, allocations: 24.92 MB / 481.8 MB, free: 8.227 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.3406, allocations: 4 kB / 481.8 MB, free: 8.223 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3406, allocations: 0 / 481.8 MB, free: 8.223 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006653/0.3412, allocations: 0 / 481.8 MB, free: 8.223 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 837 * Number of variables: 837 Notification: Performance of Generate backend data structure: time 0.05123/0.3925, allocations: 18.69 MB / 0.4887 GB, free: 5.379 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/0.3925, allocations: 12.03 kB / 0.4887 GB, free: 5.367 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001337/0.3939, allocations: 499.6 kB / 0.4892 GB, free: 4.867 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005049/0.3989, allocations: 1.567 MB / 0.4907 GB, free: 3.281 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04003/0.439, allocations: 17.77 MB / 0.5081 GB, free: 1.426 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004903/0.4395, allocations: 336.2 kB / 0.5084 GB, free: 1.09 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001012/0.4406, allocations: 320 kB / 0.5087 GB, free: 0.7773 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01126/0.4518, allocations: 6.499 MB / 0.5151 GB, free: 10.05 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.927e-05/0.4519, allocations: 3.938 kB / 0.5151 GB, free: 10.05 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004189/0.4524, allocations: 148 kB / 0.5152 GB, free: 9.902 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.995e-05/0.4524, allocations: 83.94 kB / 0.5153 GB, free: 9.82 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008554/0.461, allocations: 5.123 MB / 0.5203 GB, free: 4.688 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4702/0.9313, allocations: 33.41 MB / 0.5529 GB, free: 100.3 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006559/0.9379, allocations: 4.306 MB / 0.5571 GB, free: 98.31 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003595/0.9415, allocations: 2.592 MB / 0.5597 GB, free: 97.19 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001024/0.9416, allocations: 18.06 kB / 0.5597 GB, free: 97.19 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.329e-05/0.9417, allocations: 65.94 kB / 0.5597 GB, free: 97.13 MB / 462.1 MB Notification: Performance of pre-optimization done (n=156): time 3.777e-06/0.9417, allocations: 0 / 0.5597 GB, free: 97.13 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.02457/0.9663, allocations: 7.532 MB / 0.5671 GB, free: 91.09 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002465/0.9666, allocations: 0.9824 MB / 0.5681 GB, free: 89.87 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.08592/1.053, allocations: 35.88 MB / 0.6031 GB, free: 54.09 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005446/1.053, allocations: 61.7 kB / 0.6032 GB, free: 54.03 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01181/1.065, allocations: 7.505 MB / 0.6105 GB, free: 46.73 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006939/1.066, allocations: 0.5426 MB / 0.611 GB, free: 46.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006763/1.066, allocations: 427.1 kB / 0.6114 GB, free: 45.77 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.802e-05/1.066, allocations: 305.1 kB / 0.6117 GB, free: 45.47 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002843/1.069, allocations: 1.963 MB / 0.6136 GB, free: 43.5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003195/1.072, allocations: 2.864 MB / 0.6164 GB, free: 40.33 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005652/1.078, allocations: 4.201 MB / 0.6205 GB, free: 35.93 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.319e-05/1.078, allocations: 8 kB / 0.6205 GB, free: 35.93 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01309/1.091, allocations: 6.028 MB / 0.6264 GB, free: 29.87 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.541e-05/1.091, allocations: 14.97 kB / 0.6264 GB, free: 29.86 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.606e-05/1.091, allocations: 16 kB / 0.6265 GB, free: 29.84 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009222/1.092, allocations: 379.1 kB / 0.6268 GB, free: 29.47 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002124/1.094, allocations: 0.6941 MB / 0.6275 GB, free: 28.78 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004481/1.099, allocations: 4.612 MB / 0.632 GB, free: 24.04 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008005/1.107, allocations: 0.6529 MB / 0.6326 GB, free: 23.38 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005464/1.108, allocations: 76 kB / 0.6327 GB, free: 23.3 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 14 (cccvCharger.CV,energy.local_reset,stack.cell[3,2].limIntegrator.local_reset,stack.cell[3,2].cell.limIntegrator.local_reset,stack.cell[3,1].limIntegrator.local_reset,stack.cell[3,1].cell.limIntegrator.local_reset,stack.cell[2,2].limIntegrator.local_reset,stack.cell[2,2].cell.limIntegrator.local_reset,stack.cell[2,1].limIntegrator.local_reset,stack.cell[2,1].cell.limIntegrator.local_reset,stack.cell[1,2].limIntegrator.local_reset,stack.cell[1,2].cell.limIntegrator.local_reset,stack.cell[1,1].limIntegrator.local_reset,stack.cell[1,1].cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (222): * Single equations (assignments): 221 * 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 {(3,24)} Notification: Performance of prepare postOptimizeDAE: time 0.01179/1.119, allocations: 8.151 MB / 0.6407 GB, free: 15.14 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004774/1.124, allocations: 1.396 MB / 0.642 GB, free: 13.72 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01385/1.138, allocations: 6.048 MB / 0.6479 GB, free: 7.668 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.411e-05/1.138, allocations: 12 kB / 0.6479 GB, free: 7.656 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/1.138, allocations: 0 / 0.6479 GB, free: 7.656 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.861e-05/1.138, allocations: 11.97 kB / 0.648 GB, free: 7.645 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04761/1.186, allocations: 18.57 MB / 0.6661 GB, free: 5.023 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/1.186, allocations: 0 / 0.6661 GB, free: 5.023 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002107/1.188, allocations: 0.5678 MB / 0.6666 GB, free: 4.457 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009272/1.189, allocations: 296 kB / 0.6669 GB, free: 4.168 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002071/1.189, allocations: 39.98 kB / 0.667 GB, free: 4.129 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004845/1.194, allocations: 4.022 MB / 0.6709 GB, free: 15.97 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/1.194, allocations: 3.984 kB / 0.6709 GB, free: 15.97 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01624/1.21, allocations: 7.635 MB / 0.6784 GB, free: 8.293 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01524/1.225, allocations: 4.194 MB / 0.6825 GB, free: 4.062 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005177/1.231, allocations: 44 kB / 0.6825 GB, free: 4.02 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008251/1.239, allocations: 0.659 MB / 0.6831 GB, free: 3.359 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001176/1.24, allocations: 432.7 kB / 0.6836 GB, free: 2.934 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001874/1.24, allocations: 47.98 kB / 0.6836 GB, free: 2.887 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.06055/1.301, allocations: 25.68 MB / 0.7087 GB, free: 9.285 MB / 0.5138 GB Notification: Performance of sort global known variables: time 5.91e-07/1.301, allocations: 0 / 0.7087 GB, free: 9.285 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.0105/1.311, allocations: 1.837 MB / 0.7105 GB, free: 7.445 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 13 (stack.cell[1,1].cell.limIntegrator.y,stack.cell[1,1].limIntegrator.y,stack.cell[1,2].cell.limIntegrator.y,stack.cell[1,2].limIntegrator.y,stack.cell[2,1].cell.limIntegrator.y,stack.cell[2,1].limIntegrator.y,stack.cell[2,2].cell.limIntegrator.y,stack.cell[2,2].limIntegrator.y,stack.cell[3,1].cell.limIntegrator.y,stack.cell[3,1].limIntegrator.y,stack.cell[3,2].cell.limIntegrator.y,stack.cell[3,2].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 (136): * Single equations (assignments): 135 * 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 {(3,18)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02115/1.333, allocations: 8.566 MB / 0.7188 GB, free: 14.96 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00813/1.341, allocations: 4.496 MB / 0.7232 GB, free: 10.46 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.664e-05/1.341, allocations: 5.219 kB / 0.7232 GB, free: 10.46 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003894/1.345, allocations: 2.264 MB / 0.7254 GB, free: 8.184 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01975/1.365, allocations: 2.094 MB / 0.7275 GB, free: 6.109 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6663/2.031, allocations: 225.8 MB / 0.948 GB, free: 5.094 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01434/2.045, allocations: 10.2 MB / 0.9579 GB, free: 10.86 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.0166/2.062, allocations: 7.693 MB / 0.9654 GB, free: 3.199 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2586/2.32, allocations: 6.106 MB / 0.9714 GB, free: 187.9 MB / 0.5607 GB Notification: Performance of SimCode: time 1.313e-06/2.321, allocations: 0.5625 kB / 0.9714 GB, free: 187.9 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6621/2.983, allocations: 334.6 MB / 1.298 GB, free: 78.13 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 71.28/74.27, allocations: 6.641 kB / 1.298 GB, free: 78.13 MB / 0.5607 GB (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Stack_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Stack.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1)