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.001194/0.001194, allocations: 121.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001319/0.001319, allocations: 204.6 kB / 18.74 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.001171, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2498/0.251, allocations: 50.55 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01052/0.2615, allocations: 10.09 MB / 418.8 MB, free: 7.402 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005322/0.2669, allocations: 3.618 MB / 422.5 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009369/0.2679, allocations: 23.88 kB / 422.5 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002281/0.2702, allocations: 1.187 MB / 423.7 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001333/0.2716, allocations: 0.6763 MB / 424.3 MB, free: 1.879 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001035/0.2726, allocations: 482.9 kB / 424.8 MB, free: 1.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00641/0.2791, allocations: 7.341 MB / 432.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00434/0.2834, allocations: 4.478 MB / 436.6 MB, free: 5.488 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003819/0.2873, allocations: 2.867 MB / 439.5 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004105/0.2914, allocations: 2.935 MB / 442.4 MB, free: 15.67 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00175/0.2932, allocations: 0.6797 MB / 443.1 MB, free: 14.99 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001978/0.2952, allocations: 0.7188 MB / 443.8 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004713/0.2999, allocations: 5.826 MB / 449.7 MB, free: 8.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009539/0.3095, allocations: 7.183 MB / 456.8 MB, free: 1.207 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02098/0.3305, allocations: 24.93 MB / 481.8 MB, free: 8.207 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.363e-06/0.3306, allocations: 0 / 481.8 MB, free: 8.207 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.3306, allocations: 0 / 481.8 MB, free: 8.207 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006602/0.3312, allocations: 0 / 481.8 MB, free: 8.207 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.04963/0.3809, allocations: 18.68 MB / 0.4887 GB, free: 5.367 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/0.381, allocations: 12.03 kB / 0.4887 GB, free: 5.355 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001748/0.3827, allocations: 495.6 kB / 0.4892 GB, free: 4.859 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005951/0.3887, allocations: 1.555 MB / 0.4907 GB, free: 3.285 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04259/0.4313, allocations: 17.79 MB / 0.5081 GB, free: 1.41 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007286/0.4321, allocations: 328.2 kB / 0.5084 GB, free: 1.082 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001945/0.4341, allocations: 324 kB / 0.5087 GB, free: 0.7656 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01553/0.4496, allocations: 6.495 MB / 0.5151 GB, free: 10.04 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.921e-05/0.4498, allocations: 0 / 0.5151 GB, free: 10.04 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001028/0.4508, allocations: 144 kB / 0.5152 GB, free: 9.898 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.687e-05/0.4509, allocations: 83.94 kB / 0.5153 GB, free: 9.816 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01032/0.4612, allocations: 5.13 MB / 0.5203 GB, free: 4.676 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4603/0.9215, allocations: 33.41 MB / 0.5529 GB, free: 100.2 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006498/0.9281, allocations: 4.319 MB / 0.5571 GB, free: 98.28 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003646/0.9318, allocations: 2.581 MB / 0.5597 GB, free: 97.15 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.33e-05/0.9319, allocations: 24.41 kB / 0.5597 GB, free: 97.15 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.648e-05/0.932, allocations: 62.19 kB / 0.5597 GB, free: 97.09 MB / 462.1 MB Notification: Performance of pre-optimization done (n=156): time 3.747e-06/0.932, allocations: 0 / 0.5597 GB, free: 97.09 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.01646/0.9484, allocations: 7.529 MB / 0.5671 GB, free: 91.05 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002246/0.9487, allocations: 0.9863 MB / 0.5681 GB, free: 89.83 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0653/1.014, allocations: 35.88 MB / 0.6031 GB, free: 54.05 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005413/1.015, allocations: 61.7 kB / 0.6032 GB, free: 53.98 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01267/1.027, allocations: 7.502 MB / 0.6105 GB, free: 46.7 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007439/1.028, allocations: 0.5416 MB / 0.611 GB, free: 46.16 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007598/1.029, allocations: 431.1 kB / 0.6114 GB, free: 45.73 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.346e-05/1.029, allocations: 305.1 kB / 0.6117 GB, free: 45.43 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002823/1.032, allocations: 1.971 MB / 0.6136 GB, free: 43.46 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003528/1.035, allocations: 2.852 MB / 0.6164 GB, free: 40.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005755/1.041, allocations: 4.207 MB / 0.6205 GB, free: 35.89 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.761e-05/1.041, allocations: 4 kB / 0.6205 GB, free: 35.89 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01522/1.056, allocations: 6.037 MB / 0.6264 GB, free: 29.82 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.256e-05/1.056, allocations: 12 kB / 0.6264 GB, free: 29.81 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.461e-05/1.056, allocations: 15.72 kB / 0.6265 GB, free: 29.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001032/1.057, allocations: 375.2 kB / 0.6268 GB, free: 29.43 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002274/1.06, allocations: 0.698 MB / 0.6275 GB, free: 28.73 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004484/1.064, allocations: 4.599 MB / 0.632 GB, free: 23.99 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007465/1.072, allocations: 0.649 MB / 0.6326 GB, free: 23.34 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000414/1.072, allocations: 83.98 kB / 0.6327 GB, free: 23.25 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.01031/1.083, allocations: 8.158 MB / 0.6407 GB, free: 15.09 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005047/1.088, allocations: 1.4 MB / 0.642 GB, free: 13.68 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01207/1.1, allocations: 6.031 MB / 0.6479 GB, free: 7.633 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.301e-05/1.1, allocations: 12 kB / 0.6479 GB, free: 7.621 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/1.1, allocations: 4 kB / 0.6479 GB, free: 7.617 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.447e-05/1.1, allocations: 7.969 kB / 0.6479 GB, free: 7.609 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04443/1.144, allocations: 18.57 MB / 0.6661 GB, free: 4.98 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/1.144, allocations: 4 kB / 0.6661 GB, free: 4.977 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001912/1.146, allocations: 0.5625 MB / 0.6666 GB, free: 4.414 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008371/1.147, allocations: 301.1 kB / 0.6669 GB, free: 4.121 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001636/1.147, allocations: 39.98 kB / 0.667 GB, free: 4.082 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004772/1.152, allocations: 4.021 MB / 0.6709 GB, free: 15.93 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/1.152, allocations: 0 / 0.6709 GB, free: 15.93 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01709/1.169, allocations: 7.647 MB / 0.6784 GB, free: 8.246 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0108/1.18, allocations: 4.189 MB / 0.6825 GB, free: 4.02 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004456/1.184, allocations: 44 kB / 0.6825 GB, free: 3.977 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007375/1.192, allocations: 0.659 MB / 0.6831 GB, free: 3.316 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001063/1.193, allocations: 432.7 kB / 0.6835 GB, free: 2.891 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002776/1.193, allocations: 51.98 kB / 0.6836 GB, free: 2.84 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.06155/1.255, allocations: 25.67 MB / 0.7087 GB, free: 9.242 MB / 0.5138 GB Notification: Performance of sort global known variables: time 4.91e-07/1.255, allocations: 0 / 0.7087 GB, free: 9.242 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.0111/1.266, allocations: 1.833 MB / 0.7105 GB, free: 7.406 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.02037/1.286, allocations: 8.565 MB / 0.7188 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009176/1.296, allocations: 4.499 MB / 0.7232 GB, free: 10.43 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.538e-05/1.296, allocations: 5.219 kB / 0.7232 GB, free: 10.42 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004681/1.3, allocations: 2.265 MB / 0.7254 GB, free: 8.145 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02234/1.323, allocations: 2.103 MB / 0.7275 GB, free: 6.062 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6566/1.979, allocations: 225.8 MB / 0.948 GB, free: 5.137 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02378/2.003, allocations: 10.2 MB / 0.9579 GB, free: 10.91 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.02101/2.024, allocations: 7.689 MB / 0.9654 GB, free: 3.242 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2534/2.278, allocations: 6.095 MB / 0.9714 GB, free: 187.9 MB / 0.5607 GB Notification: Performance of SimCode: time 1.734e-06/2.278, allocations: 0.5 kB / 0.9714 GB, free: 187.9 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6264/2.904, allocations: 334.6 MB / 1.298 GB, free: 78.3 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 74.22/77.12, allocations: 10.8 kB / 1.298 GB, free: 78.29 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)