Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001419/0.001419, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 225.6 MB / 234.8 MB, free: 3.211 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009355/0.0009355, allocations: 88.34 kB / 286.7 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.753e-05/2.722e-05, allocations: 4 kB / 343.8 MB, free: 8.129 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.11, allocations: 51.48 MB / 395.3 MB, free: 4.609 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3421/0.4521, allocations: 78.44 MB / 473.7 MB, free: 13.12 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001955/0.4524, allocations: 76.75 kB / 473.8 MB, free: 13.09 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/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 trunk/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 trunk/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.02721/0.4796, allocations: 13.24 MB / 487 MB, free: 2.957 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.4796, allocations: 0.6562 kB / 487 MB, free: 2.957 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.225e-05/0.4797, allocations: 12 kB / 487 MB, free: 2.945 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.001222/0.4809, allocations: 0.8165 MB / 487.8 MB, free: 2.125 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.481, allocations: 12.03 kB / 487.8 MB, free: 2.113 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001626/0.4812, allocations: 78.97 kB / 487.9 MB, free: 2.035 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001049/0.4822, allocations: 0.7004 MB / 488.6 MB, free: 1.363 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.664e-05/0.4822, allocations: 4 kB / 488.6 MB, free: 1.359 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.3e-05/0.4823, allocations: 0 / 488.6 MB, free: 1.359 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.841e-05/0.4823, allocations: 15.3 kB / 488.6 MB, free: 1.348 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.902e-05/0.4824, allocations: 59.72 kB / 488.7 MB, free: 1.277 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.4824, allocations: 4 kB / 488.7 MB, free: 1.273 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.4825, allocations: 0 / 488.7 MB, free: 1.273 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.4825, allocations: 3.938 kB / 488.7 MB, free: 1.27 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001088/0.4836, allocations: 0.9223 MB / 489.6 MB, free: 444 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.873e-05/0.4836, allocations: 22.14 kB / 489.7 MB, free: 416 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.051e-05/0.4836, allocations: 16.28 kB / 489.7 MB, free: 400 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.47e-05/0.4837, allocations: 0 / 489.7 MB, free: 400 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.545e-05/0.4837, allocations: 38.5 kB / 489.7 MB, free: 352 kB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.4837, allocations: 0 / 489.7 MB, free: 352 kB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002351/0.4839, allocations: 115.9 kB / 489.8 MB, free: 232 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.091e-05/0.484, allocations: 51.41 kB / 489.9 MB, free: 168 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001571/0.4855, allocations: 1.23 MB / 491.1 MB, free: 15.18 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.482e-05/0.4856, allocations: 25.7 kB / 491.1 MB, free: 15.14 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002706/0.4858, allocations: 391.7 kB / 491.5 MB, free: 14.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.272e-06/0.4859, allocations: 0 / 491.5 MB, free: 14.98 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.148e-06/0.4859, allocations: 0 / 491.5 MB, free: 14.98 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.486, allocations: 318 kB / 491.8 MB, free: 14.66 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.731e-05/0.486, allocations: 6.812 kB / 491.8 MB, free: 14.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.696e-05/0.4861, allocations: 20.83 kB / 491.8 MB, free: 14.63 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.83e-05/0.4861, allocations: 7.938 kB / 491.9 MB, free: 14.62 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.4861, allocations: 0 / 491.9 MB, free: 14.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001696/0.4863, allocations: 127.9 kB / 492 MB, free: 14.5 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.4863, allocations: 13.53 kB / 492 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.4863, allocations: 0 / 492 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.4863, allocations: 0 / 492 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.4864, allocations: 11.98 kB / 492 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.4864, allocations: 2.109 kB / 492 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001353/0.4866, allocations: 8 kB / 492 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.296e-06/0.4866, allocations: 3.375 kB / 492 MB, free: 14.46 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 9.374e-05/0.4867, allocations: 116.9 kB / 492.1 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001526/0.4869, allocations: 119.5 kB / 492.2 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.874e-05/0.487, allocations: 82.88 kB / 492.3 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001173/0.4871, allocations: 102.1 kB / 492.4 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.4871, allocations: 0 / 492.4 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.4871, allocations: 0 / 492.4 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.4871, allocations: 4 kB / 492.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004421/0.4876, allocations: 462.6 kB / 492.9 MB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.4876, allocations: 4 kB / 492.9 MB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.478e-05/0.4877, allocations: 16.02 kB / 492.9 MB, free: 13.63 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.806e-06/0.4877, allocations: 0 / 492.9 MB, free: 13.63 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.4877, allocations: 7.984 kB / 492.9 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.4877, allocations: 0 / 492.9 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.4877, allocations: 1.969 kB / 492.9 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001823/0.4879, allocations: 210.5 kB / 493.1 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002708/0.4882, allocations: 225.4 kB / 493.3 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.177e-05/0.4882, allocations: 3.969 kB / 493.3 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000154/0.4884, allocations: 11.98 kB / 493.4 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.374e-05/0.4884, allocations: 4 kB / 493.4 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.937e-06/0.4884, allocations: 0 / 493.4 MB, free: 13.16 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001129/0.4896, allocations: 0.9565 MB / 494.3 MB, free: 12.42 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4896, allocations: 0 / 494.3 MB, free: 12.42 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003094/0.4899, allocations: 55.75 kB / 494.4 MB, free: 12.37 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.0006069/0.4905, allocations: 0.8365 MB / 495.2 MB, free: 11.52 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.357e-05/0.4906, allocations: 15.19 kB / 495.2 MB, free: 11.51 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.4906, allocations: 3.938 kB / 495.2 MB, free: 11.51 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.775e-05/0.4906, allocations: 7.25 kB / 495.2 MB, free: 11.5 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004777/0.4911, allocations: 97.88 kB / 495.3 MB, free: 11.45 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00183/0.493, allocations: 1.181 MB / 496.5 MB, free: 10.35 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006079/0.4936, allocations: 1.008 MB / 497.5 MB, free: 9.363 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003149/0.4939, allocations: 170.6 kB / 497.7 MB, free: 9.195 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002512/0.4942, allocations: 251.9 kB / 497.9 MB, free: 9.145 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4942, allocations: 0 / 497.9 MB, free: 9.145 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03303/0.5272, allocations: 12.06 MB / 0.498 GB, free: 13.16 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001577/0.5274, allocations: 144.4 kB / 0.4982 GB, free: 12.97 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.234/2.761, allocations: 2.844 kB / 0.4982 GB, free: 12.97 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat does not exist to compare? outputFormat=mat