Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009888/0.0009888, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 221.5 MB / 230.3 MB, free: 7.516 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008367/0.0008367, allocations: 92.61 kB / 281.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.662e-05/1.657e-05, allocations: 0 / 337.1 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1062, allocations: 50.42 MB / 387.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3904/0.4966, allocations: 86.34 MB / 473.9 MB, free: 8.352 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002482/0.4969, allocations: 79.95 kB / 474 MB, free: 8.273 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06153/0.5585, allocations: 26.53 MB / 0.4888 GB, free: 13.61 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.5585, allocations: 0 / 0.4888 GB, free: 13.61 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001159/0.5587, allocations: 28 kB / 0.4888 GB, free: 13.58 MB / 378.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.002327/0.561, allocations: 1.479 MB / 0.4902 GB, free: 12.05 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.921e-05/0.5611, allocations: 8.031 kB / 0.4903 GB, free: 12.04 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000303/0.5614, allocations: 189.7 kB / 0.4904 GB, free: 11.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002553/0.5639, allocations: 1.476 MB / 0.4919 GB, free: 10.33 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.159e-05/0.564, allocations: 55 kB / 0.4919 GB, free: 10.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.161e-05/0.5641, allocations: 28 kB / 0.492 GB, free: 10.25 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005378/0.5647, allocations: 262.6 kB / 0.4922 GB, free: 9.988 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007717/0.5655, allocations: 485.6 kB / 0.4927 GB, free: 9.469 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.5655, allocations: 7.938 kB / 0.4927 GB, free: 9.461 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.227e-05/0.5655, allocations: 0 / 0.4927 GB, free: 9.461 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.374e-05/0.5655, allocations: 12 kB / 0.4927 GB, free: 9.449 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005386/0.5709, allocations: 3.201 MB / 0.4958 GB, free: 6.145 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007157/0.5717, allocations: 283.9 kB / 0.4961 GB, free: 5.859 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003099/0.572, allocations: 137.2 kB / 0.4962 GB, free: 5.723 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.331e-05/0.5721, allocations: 8.188 kB / 0.4962 GB, free: 5.715 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.693e-05/0.5721, allocations: 42.69 kB / 0.4963 GB, free: 5.664 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 2.615e-06/0.5721, allocations: 0 / 0.4963 GB, free: 5.664 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007846/0.5729, allocations: 331.2 kB / 0.4966 GB, free: 5.332 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001474/0.5731, allocations: 213.6 kB / 0.4968 GB, free: 5.074 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00507/0.5782, allocations: 2.492 MB / 0.4992 GB, free: 2.535 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000115/0.5784, allocations: 25.7 kB / 0.4992 GB, free: 2.504 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001298/0.5797, allocations: 0.7966 MB / 0.5 GB, free: 1.703 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/0.5799, allocations: 67 kB / 0.5001 GB, free: 1.637 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.084e-05/0.5799, allocations: 4 kB / 0.5001 GB, free: 1.633 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002009/0.5801, allocations: 318 kB / 0.5004 GB, free: 1.316 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002406/0.5804, allocations: 81.06 kB / 0.5005 GB, free: 1.234 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004506/0.5808, allocations: 232.7 kB / 0.5007 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003409/0.5812, allocations: 104.3 kB / 0.5008 GB, free: 0.8359 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-05/0.5812, allocations: 7.953 kB / 0.5008 GB, free: 0.8281 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002102/0.5833, allocations: 493.7 kB / 0.5013 GB, free: 344 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.612e-05/0.5834, allocations: 4 kB / 0.5013 GB, free: 340 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.37e-05/0.5834, allocations: 7.984 kB / 0.5013 GB, free: 332 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003722/0.5838, allocations: 57.02 kB / 0.5013 GB, free: 272 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004696/0.5843, allocations: 79.83 kB / 0.5014 GB, free: 192 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002106/0.5864, allocations: 1.493 MB / 0.5029 GB, free: 14.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009707/0.5874, allocations: 55.66 kB / 0.5029 GB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.438e-05/0.5875, allocations: 16 kB / 0.5029 GB, free: 14.5 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: cccvCharger.v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real 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 () * 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.0002888/0.5878, allocations: 126.3 kB / 0.5031 GB, free: 14.38 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008406/0.5886, allocations: 335.1 kB / 0.5034 GB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003538/0.589, allocations: 169.9 kB / 0.5035 GB, free: 13.88 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001241/0.5903, allocations: 370.1 kB / 0.5039 GB, free: 13.5 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.5903, allocations: 0 / 0.5039 GB, free: 13.5 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.564e-06/0.5903, allocations: 0 / 0.5039 GB, free: 13.5 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-06/0.5903, allocations: 0 / 0.5039 GB, free: 13.5 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004014/0.5943, allocations: 1.609 MB / 0.5055 GB, free: 11.84 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.114e-06/0.5944, allocations: 0 / 0.5055 GB, free: 11.84 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004451/0.5948, allocations: 47.91 kB / 0.5055 GB, free: 11.79 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002346/0.5951, allocations: 40.88 kB / 0.5055 GB, free: 11.75 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.865e-05/0.5951, allocations: 3.938 kB / 0.5055 GB, free: 11.75 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002069/0.5972, allocations: 1.431 MB / 0.5069 GB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.686e-06/0.5972, allocations: 3.938 kB / 0.507 GB, free: 10.19 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001554/0.5988, allocations: 0.5634 MB / 0.5075 GB, free: 9.598 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001141/0.6, allocations: 0.496 MB / 0.508 GB, free: 9.062 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000215/0.6002, allocations: 4 kB / 0.508 GB, free: 9.059 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007552/0.601, allocations: 55.91 kB / 0.508 GB, free: 9.004 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/0.6011, allocations: 27.95 kB / 0.5081 GB, free: 8.977 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.302e-05/0.6012, allocations: 8 kB / 0.5081 GB, free: 8.969 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00473/0.6059, allocations: 1.902 MB / 0.5099 GB, free: 7.043 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6059, allocations: 0 / 0.5099 GB, free: 7.043 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001588/0.6075, allocations: 219.5 kB / 0.5101 GB, free: 6.828 MB / 394.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 () * 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.003062/0.6106, allocations: 1.411 MB / 0.5115 GB, free: 5.453 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001057/0.6117, allocations: 340.2 kB / 0.5118 GB, free: 5.113 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.6117, allocations: 0 / 0.5118 GB, free: 5.113 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005337/0.6123, allocations: 229.5 kB / 0.5121 GB, free: 4.879 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001377/0.6137, allocations: 180.7 kB / 0.5122 GB, free: 4.699 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009334/0.623, allocations: 2.838 MB / 0.515 GB, free: 1.805 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001834/0.6249, allocations: 1.39 MB / 0.5164 GB, free: 392 kB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001112/0.626, allocations: 250.2 kB / 0.5166 GB, free: 136 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001239/0.6273, allocations: 0.5931 MB / 0.5172 GB, free: 15.54 MB / 410.7 MB Notification: Performance of SimCode: time 1.122e-06/0.6273, allocations: 4 kB / 0.5172 GB, free: 15.53 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06447/0.6918, allocations: 26.1 MB / 0.5427 GB, free: 5.516 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002487/0.6921, allocations: 173.6 kB / 0.5428 GB, free: 5.316 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.613/3.305, allocations: 0 / 0.5428 GB, free: 5.316 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat does not exist to compare? outputFormat=mat