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.001358/0.001358, allocations: 177.1 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 221.3 MB / 235.5 MB, free: 2.953 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.0008155/0.0008153, allocations: 92.44 kB / 286.5 MB, free: 248 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.501e-05/2.506e-05, allocations: 4 kB / 343.9 MB, free: 4.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1012, allocations: 50.43 MB / 394.4 MB, free: 1.773 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3433/0.4446, allocations: 78.3 MB / 472.7 MB, free: 9.195 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002463/0.4449, allocations: 77.8 kB / 472.7 MB, free: 9.121 MB / 346.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.03062/0.4755, allocations: 13.5 MB / 486.2 MB, free: 11.51 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4756, allocations: 3.938 kB / 486.2 MB, free: 11.5 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.232e-05/0.4756, allocations: 12.66 kB / 486.2 MB, free: 11.49 MB / 362.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.001064/0.4767, allocations: 0.8168 MB / 487.1 MB, free: 10.63 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.4767, allocations: 8.031 kB / 487.1 MB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.682e-05/0.4768, allocations: 34.56 kB / 487.1 MB, free: 10.58 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.519e-05/0.4769, allocations: 78.97 kB / 487.2 MB, free: 10.5 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009243/0.4778, allocations: 0.696 MB / 487.9 MB, free: 9.75 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.345e-05/0.4779, allocations: 4 kB / 487.9 MB, free: 9.746 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.449e-05/0.4779, allocations: 0 / 487.9 MB, free: 9.746 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001227/0.478, allocations: 72.14 kB / 488 MB, free: 9.66 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.478, allocations: 3.938 kB / 488 MB, free: 9.656 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.071e-05/0.478, allocations: 4 kB / 488 MB, free: 9.652 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.478, allocations: 4 kB / 488 MB, free: 9.648 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.454e-05/0.4781, allocations: 15.94 kB / 488 MB, free: 9.633 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001098/0.4792, allocations: 0.9497 MB / 488.9 MB, free: 8.625 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.051e-05/0.4793, allocations: 22.58 kB / 489 MB, free: 8.594 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.39e-05/0.4793, allocations: 8.922 kB / 489 MB, free: 8.582 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.678e-05/0.4793, allocations: 7.938 kB / 489 MB, free: 8.574 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.168e-05/0.4794, allocations: 42.55 kB / 489 MB, free: 8.523 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.383e-06/0.4794, allocations: 0 / 489 MB, free: 8.523 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002258/0.4796, allocations: 116.7 kB / 489.1 MB, free: 8.402 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.12e-05/0.4796, allocations: 55.39 kB / 489.2 MB, free: 8.336 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001504/0.4811, allocations: 1.272 MB / 490.5 MB, free: 7.043 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.61e-05/0.4812, allocations: 25.7 kB / 490.5 MB, free: 7.012 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003288/0.4815, allocations: 392.3 kB / 490.9 MB, free: 6.625 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.065e-06/0.4815, allocations: 0 / 490.9 MB, free: 6.625 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.727e-06/0.4815, allocations: 0 / 490.9 MB, free: 6.625 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.4817, allocations: 314 kB / 491.2 MB, free: 6.312 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.229e-05/0.4817, allocations: 7.984 kB / 491.2 MB, free: 6.305 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.537e-05/0.4817, allocations: 17.66 kB / 491.2 MB, free: 6.281 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.667e-05/0.4818, allocations: 8 kB / 491.2 MB, free: 6.273 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.4818, allocations: 3.953 kB / 491.2 MB, free: 6.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001664/0.4819, allocations: 124.8 kB / 491.3 MB, free: 6.141 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.482, allocations: 15.94 kB / 491.3 MB, free: 6.125 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.718e-06/0.482, allocations: 0 / 491.3 MB, free: 6.125 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.482, allocations: 0 / 491.3 MB, free: 6.125 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001225/0.4821, allocations: 15.92 kB / 491.4 MB, free: 6.109 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.4821, allocations: 4 kB / 491.4 MB, free: 6.105 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001362/0.4823, allocations: 15.83 kB / 491.4 MB, free: 6.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.126e-05/0.4823, allocations: 4 kB / 491.4 MB, free: 6.086 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 6.073e-05/0.4824, allocations: 105 kB / 491.5 MB, free: 5.977 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001329/0.4825, allocations: 82.92 kB / 491.6 MB, free: 5.895 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001193/0.4826, allocations: 111.4 kB / 491.7 MB, free: 5.785 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.4826, allocations: 0 / 491.7 MB, free: 5.785 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.4826, allocations: 4 kB / 491.7 MB, free: 5.781 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.4827, allocations: 0 / 491.7 MB, free: 5.781 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000459/0.4831, allocations: 486.8 kB / 492.1 MB, free: 5.258 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.4831, allocations: 0 / 492.1 MB, free: 5.258 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.539e-05/0.4832, allocations: 15.94 kB / 492.2 MB, free: 5.242 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.4832, allocations: 4 kB / 492.2 MB, free: 5.238 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.504e-06/0.4832, allocations: 0 / 492.2 MB, free: 5.238 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.4832, allocations: 0 / 492.2 MB, free: 5.238 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.4832, allocations: 3.938 kB / 492.2 MB, free: 5.234 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001978/0.4835, allocations: 226.9 kB / 492.4 MB, free: 4.996 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003/0.4838, allocations: 216 kB / 492.6 MB, free: 4.766 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.659e-05/0.4838, allocations: 7.953 kB / 492.6 MB, free: 4.758 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001538/0.484, allocations: 8.031 kB / 492.6 MB, free: 4.75 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.372e-05/0.484, allocations: 3.984 kB / 492.6 MB, free: 4.746 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.252e-06/0.484, allocations: 4 kB / 492.6 MB, free: 4.742 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001182/0.4852, allocations: 1.006 MB / 493.6 MB, free: 3.723 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.4852, allocations: 0 / 493.6 MB, free: 3.723 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003773/0.4856, allocations: 76 kB / 493.7 MB, free: 3.648 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.0006322/0.4863, allocations: 0.8299 MB / 494.5 MB, free: 2.789 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.052e-05/0.4864, allocations: 19.92 kB / 494.6 MB, free: 2.77 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.4864, allocations: 0 / 494.6 MB, free: 2.77 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.391e-05/0.4864, allocations: 8 kB / 494.6 MB, free: 2.762 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004998/0.4869, allocations: 96.45 kB / 494.7 MB, free: 2.664 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001785/0.4887, allocations: 1.187 MB / 495.8 MB, free: 1.438 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005918/0.4893, allocations: 1.013 MB / 496.9 MB, free: 408 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003146/0.4896, allocations: 174.6 kB / 497 MB, free: 228 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003018/0.49, allocations: 251.4 kB / 497.3 MB, free: 15.97 MB / 378.7 MB Notification: Performance of SimCode: time 1.052e-06/0.49, allocations: 0 / 497.3 MB, free: 15.97 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03455/0.5245, allocations: 15.73 MB / 0.501 GB, free: 428 kB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001962/0.5248, allocations: 164.3 kB / 0.5011 GB, free: 196 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.113/2.638, allocations: 3.938 kB / 0.5011 GB, free: 192 kB / 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