Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001954/0.001954, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 227.2 MB / 245 MB, free: 7.574 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001073/0.001073, allocations: 110 kB / 297.3 MB, free: 6.188 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3286/0.3286, allocations: 45.24 MB / 394.6 MB, free: 31.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003054/0.0003054, allocations: 8.219 kB / 468.5 MB, free: 7.652 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3448/0.3451, allocations: 63.24 MB / 0.5193 GB, free: 43.67 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1124/0.4576, allocations: 87.13 MB / 0.6043 GB, free: 2.504 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001973/0.4578, allocations: 69.41 kB / 0.6044 GB, free: 2.441 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006351/0.4642, allocations: 2.309 MB / 0.6067 GB, free: 136 kB / 410.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.4642, allocations: 1.688 kB / 0.6067 GB, free: 136 kB / 410.7 MB Notification: Performance of Transformations before backend: time 5.07e-06/0.4642, allocations: 0 / 0.6067 GB, free: 136 kB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004236/0.4646, allocations: 370.3 kB / 0.607 GB, free: 15.72 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.177e-05/0.4647, allocations: 8.031 kB / 0.607 GB, free: 15.71 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.755e-05/0.4648, allocations: 31.72 kB / 0.6071 GB, free: 15.67 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.974e-05/0.4648, allocations: 0 / 0.6071 GB, free: 15.67 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001336/0.465, allocations: 171 kB / 0.6072 GB, free: 15.46 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.8e-05/0.465, allocations: 5 kB / 0.6072 GB, free: 15.46 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.013e-05/0.465, allocations: 0 / 0.6072 GB, free: 15.46 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.15e-05/0.4651, allocations: 26.7 kB / 0.6072 GB, free: 15.43 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.4652, allocations: 0 / 0.6072 GB, free: 15.43 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.417e-05/0.4652, allocations: 4.781 kB / 0.6073 GB, free: 15.43 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.4652, allocations: 0 / 0.6073 GB, free: 15.43 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.328e-05/0.4653, allocations: 0.7188 kB / 0.6073 GB, free: 15.43 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001975/0.4655, allocations: 154.4 kB / 0.6074 GB, free: 15.23 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.739e-05/0.4656, allocations: 25.27 kB / 0.6074 GB, free: 15.2 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.984e-06/0.4656, allocations: 3.984 kB / 0.6074 GB, free: 15.19 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.488e-05/0.4656, allocations: 56.27 kB / 0.6075 GB, free: 15.12 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 2.024e-06/0.4657, allocations: 0 / 0.6075 GB, free: 15.12 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002194/0.4659, allocations: 67.45 kB / 0.6075 GB, free: 15.04 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.793e-05/0.466, allocations: 81.58 kB / 0.6076 GB, free: 14.95 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.907e-05/0.466, allocations: 85.59 kB / 0.6077 GB, free: 14.86 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.062e-05/0.4661, allocations: 26.83 kB / 0.6077 GB, free: 14.82 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.611e-05/0.4661, allocations: 84.14 kB / 0.6078 GB, free: 14.74 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.985e-05/0.4662, allocations: 3.984 kB / 0.6078 GB, free: 14.73 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.906e-06/0.4662, allocations: 0.7188 kB / 0.6078 GB, free: 14.73 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.4664, allocations: 311.6 kB / 0.6081 GB, free: 14.42 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.846e-05/0.4664, allocations: 3.938 kB / 0.6081 GB, free: 14.42 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.171e-05/0.4665, allocations: 4.844 kB / 0.6081 GB, free: 14.41 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.668e-05/0.4665, allocations: 30.39 kB / 0.6082 GB, free: 14.38 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.4665, allocations: 0 / 0.6082 GB, free: 14.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001183/0.4667, allocations: 67.91 kB / 0.6082 GB, free: 14.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.826e-05/0.4667, allocations: 30.52 kB / 0.6082 GB, free: 14.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.4667, allocations: 0 / 0.6082 GB, free: 14.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.4668, allocations: 4.781 kB / 0.6083 GB, free: 14.26 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.623e-06/0.4668, allocations: 0 / 0.6083 GB, free: 14.26 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.229e-05/0.4668, allocations: 7.594 kB / 0.6083 GB, free: 14.26 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.19e-05/0.4668, allocations: 0 / 0.6083 GB, free: 14.26 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.249e-05/0.4669, allocations: 4 kB / 0.6083 GB, free: 14.25 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001175/0.467, allocations: 135.5 kB / 0.6084 GB, free: 14.11 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.652e-05/0.467, allocations: 7.953 kB / 0.6084 GB, free: 14.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.688e-05/0.4671, allocations: 10.72 kB / 0.6084 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.4671, allocations: 0 / 0.6084 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.4671, allocations: 0 / 0.6084 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.982e-06/0.4671, allocations: 2.406 kB / 0.6084 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001576/0.4673, allocations: 145.6 kB / 0.6086 GB, free: 13.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.159e-06/0.4673, allocations: 7.984 kB / 0.6086 GB, free: 13.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.133e-06/0.4673, allocations: 0 / 0.6086 GB, free: 13.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.683e-06/0.4673, allocations: 3.953 kB / 0.6086 GB, free: 13.89 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.4674, allocations: 0 / 0.6086 GB, free: 13.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.4674, allocations: 224 / 0.6086 GB, free: 13.89 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.4674, allocations: 4 kB / 0.6086 GB, free: 13.89 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001644/0.4676, allocations: 86.84 kB / 0.6086 GB, free: 13.78 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.774e-05/0.4676, allocations: 81.09 kB / 0.6087 GB, free: 13.68 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.241e-05/0.4677, allocations: 3.953 kB / 0.6087 GB, free: 13.68 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.051e-05/0.4677, allocations: 4 kB / 0.6087 GB, free: 13.67 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.564e-05/0.4677, allocations: 0 / 0.6087 GB, free: 13.67 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.579e-06/0.4678, allocations: 0 / 0.6087 GB, free: 13.67 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.29e-05/0.4678, allocations: 79.31 kB / 0.6088 GB, free: 13.59 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.9e-07/0.4678, allocations: 0 / 0.6088 GB, free: 13.59 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004518/0.4683, allocations: 43.98 kB / 0.6089 GB, free: 13.55 MB / 426.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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.001333/0.4696, allocations: 0.8042 MB / 0.6096 GB, free: 12.79 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001137/0.4698, allocations: 59.41 kB / 0.6097 GB, free: 12.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.4698, allocations: 0 / 0.6097 GB, free: 12.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 6.408e-05/0.4699, allocations: 67.39 kB / 0.6098 GB, free: 12.64 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001344/0.47, allocations: 7.891 kB / 0.6098 GB, free: 12.63 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004466/0.4705, allocations: 125.9 kB / 0.6099 GB, free: 12.47 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003194/0.4708, allocations: 0.677 MB / 0.6105 GB, free: 11.77 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 7.113e-06/0.4709, allocations: 0 / 0.6105 GB, free: 11.77 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.427e-05/0.4709, allocations: 7.438 kB / 0.6106 GB, free: 11.76 MB / 426.7 MB Notification: Performance of SimCode: time 4.31e-07/0.4709, allocations: 0 / 0.6106 GB, free: 11.76 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0171/0.488, allocations: 1.542 MB / 0.6121 GB, free: 10.34 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002958/0.4884, allocations: 201.7 kB / 0.6123 GB, free: 10.1 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.647/2.136, allocations: 0 / 0.6123 GB, free: 10.1 MB / 426.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_res.mat does not exist to compare? outputFormat=mat