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.001171/0.001171, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 225.4 MB / 240.1 MB, free: 15.05 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008733/0.0008732, allocations: 94.2 kB / 292.1 MB, free: 5.961 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.355e-05/3.359e-05, allocations: 224 / 350.6 MB, free: 2.445 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09764/0.0977, allocations: 51.49 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.294/0.3917, allocations: 79.1 MB / 481.2 MB, free: 10.33 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001841/0.392, allocations: 70.31 kB / 481.3 MB, free: 10.3 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.02528/0.4173, allocations: 13.47 MB / 494.8 MB, free: 14.47 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.4173, allocations: 0 / 494.8 MB, free: 14.47 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.033e-05/0.4173, allocations: 12 kB / 494.8 MB, free: 14.46 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.001076/0.4184, allocations: 0.8125 MB / 495.6 MB, free: 13.64 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.4185, allocations: 12.03 kB / 495.6 MB, free: 13.63 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.995e-05/0.4185, allocations: 30.56 kB / 495.6 MB, free: 13.59 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.88e-05/0.4186, allocations: 78.97 kB / 495.7 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001012/0.4196, allocations: 0.712 MB / 496.4 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.4197, allocations: 0 / 496.4 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.512e-05/0.4197, allocations: 4 kB / 496.4 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001232/0.4198, allocations: 60.25 kB / 496.5 MB, free: 12.68 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.4198, allocations: 4 kB / 496.5 MB, free: 12.67 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.4199, allocations: 0 / 496.5 MB, free: 12.67 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.4199, allocations: 0 / 496.5 MB, free: 12.67 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.52e-05/0.4199, allocations: 19.94 kB / 496.5 MB, free: 12.65 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001113/0.421, allocations: 0.9458 MB / 497.5 MB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.965e-05/0.4211, allocations: 38.5 kB / 497.5 MB, free: 11.6 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.276e-05/0.4211, allocations: 8.844 kB / 497.5 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.186e-05/0.4212, allocations: 0 / 497.5 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.947e-05/0.4212, allocations: 34.62 kB / 497.5 MB, free: 11.55 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.4212, allocations: 0 / 497.5 MB, free: 11.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002166/0.4214, allocations: 116.7 kB / 497.6 MB, free: 11.43 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.558e-05/0.4215, allocations: 55.41 kB / 497.7 MB, free: 11.36 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001559/0.423, allocations: 1.282 MB / 499 MB, free: 10.06 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.582e-05/0.4231, allocations: 29.73 kB / 499 MB, free: 10.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003277/0.4234, allocations: 396.3 kB / 499.4 MB, free: 9.633 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.801e-06/0.4234, allocations: 0 / 499.4 MB, free: 9.633 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.397e-06/0.4234, allocations: 0 / 499.4 MB, free: 9.633 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.4235, allocations: 310 kB / 499.7 MB, free: 9.324 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.193e-05/0.4235, allocations: 7.922 kB / 499.7 MB, free: 9.316 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.817e-05/0.4236, allocations: 17.72 kB / 499.7 MB, free: 9.293 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.508e-05/0.4236, allocations: 8.062 kB / 499.7 MB, free: 9.285 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.4236, allocations: 0 / 499.7 MB, free: 9.285 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001634/0.4238, allocations: 136.5 kB / 499.9 MB, free: 9.145 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.4238, allocations: 4 kB / 499.9 MB, free: 9.141 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.4238, allocations: 4 kB / 499.9 MB, free: 9.137 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/0.4239, allocations: 0 / 499.9 MB, free: 9.137 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001046/0.424, allocations: 11.98 kB / 499.9 MB, free: 9.125 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.424, allocations: 5.859 kB / 499.9 MB, free: 9.121 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001315/0.4241, allocations: 11.98 kB / 499.9 MB, free: 9.109 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.839e-06/0.4241, allocations: 3.953 kB / 499.9 MB, free: 9.105 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.837e-05/0.4242, allocations: 105 kB / 0.4883 GB, free: 8.996 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.613e-05/0.4243, allocations: 78.97 kB / 0.4884 GB, free: 8.918 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000145/0.4245, allocations: 99.39 kB / 0.4885 GB, free: 8.82 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.4245, allocations: 0 / 0.4885 GB, free: 8.82 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.4245, allocations: 0 / 0.4885 GB, free: 8.82 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.4245, allocations: 9.766 kB / 0.4885 GB, free: 8.812 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004617/0.425, allocations: 482.8 kB / 0.4889 GB, free: 8.293 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.425, allocations: 0 / 0.4889 GB, free: 8.293 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.077e-05/0.4251, allocations: 11.98 kB / 0.4889 GB, free: 8.281 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.4251, allocations: 0 / 0.4889 GB, free: 8.281 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.325e-06/0.4251, allocations: 8 kB / 0.489 GB, free: 8.273 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.4251, allocations: 0 / 0.489 GB, free: 8.273 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.4251, allocations: 3.938 kB / 0.489 GB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002147/0.4253, allocations: 222.9 kB / 0.4892 GB, free: 8.035 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003182/0.4256, allocations: 220 kB / 0.4894 GB, free: 7.801 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.756e-05/0.4257, allocations: 0 / 0.4894 GB, free: 7.801 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001526/0.4259, allocations: 7.984 kB / 0.4894 GB, free: 7.793 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.726e-05/0.4259, allocations: 4 kB / 0.4894 GB, free: 7.789 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-06/0.4259, allocations: 0 / 0.4894 GB, free: 7.789 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001245/0.4272, allocations: 1.006 MB / 0.4904 GB, free: 6.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4272, allocations: 4.031 kB / 0.4904 GB, free: 6.766 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003754/0.4276, allocations: 80 kB / 0.4905 GB, free: 6.688 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.000664/0.4282, allocations: 0.8339 MB / 0.4913 GB, free: 5.828 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.242e-05/0.4283, allocations: 19.94 kB / 0.4913 GB, free: 5.809 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.4283, allocations: 0 / 0.4913 GB, free: 5.809 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.079e-05/0.4284, allocations: 4 kB / 0.4913 GB, free: 5.805 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000518/0.4289, allocations: 103.3 kB / 0.4914 GB, free: 5.703 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001911/0.4308, allocations: 1.186 MB / 0.4925 GB, free: 4.48 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006692/0.4315, allocations: 1.013 MB / 0.4935 GB, free: 3.441 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003375/0.4318, allocations: 166.6 kB / 0.4937 GB, free: 3.273 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003143/0.4322, allocations: 255.4 kB / 0.4939 GB, free: 3.023 MB / 362.7 MB Notification: Performance of SimCode: time 3.71e-07/0.4322, allocations: 0 / 0.4939 GB, free: 3.023 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03208/0.4643, allocations: 15.69 MB / 0.5093 GB, free: 3.559 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001789/0.4645, allocations: 155.1 kB / 0.5094 GB, free: 3.336 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.248/2.712, allocations: 0 / 0.5094 GB, free: 3.336 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