Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.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.ShowImpedance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",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.001524/0.001524, allocations: 177.1 kB / 8.349 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.395/1.395, allocations: 221.5 MB / 230.3 MB, free: 7.551 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.0008685/0.0008686, allocations: 98.02 kB / 281.2 MB, free: 5.301 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.454e-05/1.456e-05, allocations: 0 / 337.1 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08738/0.08741, allocations: 50.42 MB / 387.5 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3086/0.396, allocations: 77.65 MB / 465.2 MB, free: 1.039 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003067/0.3964, allocations: 71.97 kB / 465.3 MB, free: 0.9688 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[2].R to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[2].C to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[1].R to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[1].C to false. Notification: Performance of FrontEnd - DAE generated: time 0.04304/0.4395, allocations: 13.28 MB / 478.6 MB, free: 3.578 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4395, allocations: 0 / 478.6 MB, free: 3.578 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.273e-05/0.4396, allocations: 8.656 kB / 478.6 MB, free: 3.57 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.001682/0.4413, allocations: 0.8133 MB / 479.4 MB, free: 2.711 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.596e-05/0.4414, allocations: 12.03 kB / 479.4 MB, free: 2.699 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001688/0.4415, allocations: 86.95 kB / 479.5 MB, free: 2.613 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001616/0.4432, allocations: 0.6999 MB / 480.2 MB, free: 1.859 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.143e-05/0.4432, allocations: 0 / 480.2 MB, free: 1.859 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.412e-05/0.4432, allocations: 0 / 480.2 MB, free: 1.859 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.077e-05/0.4433, allocations: 19.94 kB / 480.2 MB, free: 1.84 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001465/0.4435, allocations: 60.2 kB / 480.2 MB, free: 1.766 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.4435, allocations: 0 / 480.2 MB, free: 1.766 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.432e-05/0.4436, allocations: 0 / 480.2 MB, free: 1.766 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.553e-06/0.4436, allocations: 4 kB / 480.3 MB, free: 1.762 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001755/0.4453, allocations: 0.9193 MB / 481.2 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.716e-05/0.4454, allocations: 34.47 kB / 481.2 MB, free: 0.7539 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.825e-05/0.4455, allocations: 4.859 kB / 481.2 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.391e-05/0.4455, allocations: 0 / 481.2 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.661e-05/0.4456, allocations: 46.56 kB / 481.3 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.423e-06/0.4456, allocations: 0 / 481.3 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0003599/0.4459, allocations: 112.7 kB / 481.4 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.446, allocations: 55.41 kB / 481.4 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002485/0.4485, allocations: 1.232 MB / 482.7 MB, free: 15.26 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.053e-05/0.4485, allocations: 25.7 kB / 482.7 MB, free: 15.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000526/0.4491, allocations: 388.3 kB / 483.1 MB, free: 14.84 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.958e-06/0.4491, allocations: 4 kB / 483.1 MB, free: 14.84 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.841e-06/0.4491, allocations: 0 / 483.1 MB, free: 14.84 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.4493, allocations: 310 kB / 483.4 MB, free: 14.53 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.942e-05/0.4493, allocations: 4 kB / 483.4 MB, free: 14.53 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.691e-05/0.4494, allocations: 21.66 kB / 483.4 MB, free: 14.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.83e-05/0.4494, allocations: 12.05 kB / 483.4 MB, free: 14.49 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.4495, allocations: 0 / 483.4 MB, free: 14.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002681/0.4497, allocations: 124.6 kB / 483.5 MB, free: 14.36 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/0.4498, allocations: 13.34 kB / 483.5 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.4498, allocations: 0 / 483.5 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.4498, allocations: 0 / 483.5 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001486/0.45, allocations: 11.98 kB / 483.5 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.754e-06/0.45, allocations: 4 kB / 483.5 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002264/0.4502, allocations: 23.83 kB / 483.6 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.027e-05/0.4503, allocations: 0 / 483.6 MB, free: 14.31 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.958e-05/0.4504, allocations: 105 kB / 483.7 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002615/0.4506, allocations: 124.6 kB / 483.8 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001709/0.4508, allocations: 78.97 kB / 483.9 MB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001947/0.451, allocations: 99.7 kB / 484 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.451, allocations: 4 kB / 484 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.4511, allocations: 4.031 kB / 484 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.4511, allocations: 3.984 kB / 484 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007306/0.4518, allocations: 458.9 kB / 484.4 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.4518, allocations: 0 / 484.4 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001189/0.452, allocations: 11.98 kB / 484.4 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.452, allocations: 3.953 kB / 484.4 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.452, allocations: 4 kB / 484.4 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.452, allocations: 0 / 484.4 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.452, allocations: 0 / 484.4 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002713/0.4523, allocations: 222.9 kB / 484.7 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004439/0.4528, allocations: 220 kB / 484.9 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001062/0.4529, allocations: 3.953 kB / 484.9 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003071/0.4532, allocations: 11.98 kB / 484.9 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.939e-05/0.4533, allocations: 0 / 484.9 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-06/0.4533, allocations: 0 / 484.9 MB, free: 12.89 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001866/0.4552, allocations: 0.9666 MB / 485.9 MB, free: 11.92 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.4552, allocations: 0 / 485.9 MB, free: 11.92 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005466/0.4557, allocations: 63.91 kB / 485.9 MB, free: 11.86 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008664/0.4566, allocations: 0.8323 MB / 486.8 MB, free: 11 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001081/0.4568, allocations: 15.98 kB / 486.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4568, allocations: 0 / 486.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.71e-05/0.4568, allocations: 8 kB / 486.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000751/0.4576, allocations: 104.4 kB / 486.9 MB, free: 10.88 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002962/0.4606, allocations: 1.182 MB / 488.1 MB, free: 9.648 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009863/0.4616, allocations: 1.012 MB / 489.1 MB, free: 8.613 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005671/0.4622, allocations: 170.6 kB / 489.2 MB, free: 8.445 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000485/0.4627, allocations: 251.4 kB / 489.5 MB, free: 8.199 MB / 362.7 MB Notification: Performance of SimCode: time 7.31e-07/0.4627, allocations: 4 kB / 489.5 MB, free: 8.195 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04369/0.5064, allocations: 12.1 MB / 0.4898 GB, free: 12.18 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000243/0.5067, allocations: 148.4 kB / 0.49 GB, free: 11.98 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.17/2.676, allocations: 3.938 kB / 0.49 GB, free: 11.98 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat does not exist to compare? outputFormat=mat