Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.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.TestFiles,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001684/0.001684, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.551/1.551, allocations: 227.2 MB / 245 MB, free: 7.664 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008814/0.0008818, allocations: 104.5 kB / 297.3 MB, free: 6.199 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3957/0.3957, allocations: 45.24 MB / 394.7 MB, free: 31.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002838/0.0002839, allocations: 4 kB / 468.5 MB, free: 7.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4151/0.4154, allocations: 63.24 MB / 0.5193 GB, free: 43.8 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1288/0.5442, allocations: 88.69 MB / 0.6059 GB, free: 0.9258 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002605/0.5445, allocations: 67.94 kB / 0.6059 GB, free: 0.8633 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01748/0.562, allocations: 6.316 MB / 0.6121 GB, free: 10.55 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.5621, allocations: 0 / 0.6121 GB, free: 10.55 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.515e-05/0.5621, allocations: 0 / 0.6121 GB, free: 10.55 MB / 426.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.0004677/0.5626, allocations: 414.7 kB / 0.6125 GB, free: 10.1 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.413e-05/0.5626, allocations: 12.02 kB / 0.6125 GB, free: 10.09 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.319e-05/0.5627, allocations: 34.56 kB / 0.6125 GB, free: 10.04 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.935e-05/0.5627, allocations: 1.656 kB / 0.6125 GB, free: 10.04 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001483/0.5629, allocations: 171 kB / 0.6127 GB, free: 9.836 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.5629, allocations: 0 / 0.6127 GB, free: 9.836 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.905e-06/0.5629, allocations: 0 / 0.6127 GB, free: 9.836 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.684e-05/0.563, allocations: 31.08 kB / 0.6127 GB, free: 9.801 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.563, allocations: 0 / 0.6127 GB, free: 9.801 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.146e-06/0.563, allocations: 0.7812 kB / 0.6127 GB, free: 9.801 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.563, allocations: 0 / 0.6127 GB, free: 9.801 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.003e-05/0.5631, allocations: 7.984 kB / 0.6127 GB, free: 9.793 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001594/0.5632, allocations: 159 kB / 0.6129 GB, free: 9.59 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.173e-05/0.5633, allocations: 23.27 kB / 0.6129 GB, free: 9.559 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.498e-06/0.5633, allocations: 3.984 kB / 0.6129 GB, free: 9.555 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.824e-05/0.5634, allocations: 57.58 kB / 0.613 GB, free: 9.484 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 9.61e-07/0.5634, allocations: 0 / 0.613 GB, free: 9.484 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001761/0.5636, allocations: 68.3 kB / 0.613 GB, free: 9.406 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.931e-05/0.5636, allocations: 81.95 kB / 0.6131 GB, free: 9.309 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.777e-05/0.5637, allocations: 85.81 kB / 0.6132 GB, free: 9.219 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.591e-05/0.5637, allocations: 25.7 kB / 0.6132 GB, free: 9.188 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.401e-05/0.5638, allocations: 92.91 kB / 0.6133 GB, free: 9.094 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.678e-05/0.5638, allocations: 4 kB / 0.6133 GB, free: 9.09 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.455e-06/0.5638, allocations: 3.312 kB / 0.6133 GB, free: 9.09 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.5639, allocations: 314.8 kB / 0.6136 GB, free: 8.773 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.446e-06/0.5639, allocations: 0 / 0.6136 GB, free: 8.773 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.462e-06/0.564, allocations: 4 kB / 0.6136 GB, free: 8.77 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.35e-05/0.564, allocations: 25.7 kB / 0.6137 GB, free: 8.738 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.564, allocations: 0 / 0.6137 GB, free: 8.738 MB / 426.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.228e-05/0.5641, allocations: 70.02 kB / 0.6137 GB, free: 8.66 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.559e-05/0.5641, allocations: 33.64 kB / 0.6138 GB, free: 8.621 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.5641, allocations: 4 kB / 0.6138 GB, free: 8.617 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.5641, allocations: 0 / 0.6138 GB, free: 8.617 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.032e-06/0.5641, allocations: 0 / 0.6138 GB, free: 8.617 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.5641, allocations: 0 / 0.6138 GB, free: 8.617 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.811e-05/0.5642, allocations: 4 kB / 0.6138 GB, free: 8.613 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.265e-06/0.5642, allocations: 352 / 0.6138 GB, free: 8.613 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.0001251/0.5643, allocations: 143.5 kB / 0.6139 GB, free: 8.457 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.424e-06/0.5643, allocations: 3.938 kB / 0.6139 GB, free: 8.453 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.652e-05/0.5644, allocations: 10.7 kB / 0.6139 GB, free: 8.449 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.5644, allocations: 0 / 0.6139 GB, free: 8.449 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.5644, allocations: 4 kB / 0.6139 GB, free: 8.445 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.5644, allocations: 0 / 0.6139 GB, free: 8.445 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000107/0.5645, allocations: 145.6 kB / 0.6141 GB, free: 8.254 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.5645, allocations: 0 / 0.6141 GB, free: 8.254 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.104e-06/0.5645, allocations: 3.984 kB / 0.6141 GB, free: 8.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.5645, allocations: 4 kB / 0.6141 GB, free: 8.246 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.873e-06/0.5645, allocations: 4 kB / 0.6141 GB, free: 8.242 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.5645, allocations: 0 / 0.6141 GB, free: 8.242 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.5645, allocations: 0 / 0.6141 GB, free: 8.242 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.616e-05/0.5646, allocations: 86.84 kB / 0.6142 GB, free: 8.133 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.012e-05/0.5647, allocations: 85.05 kB / 0.6142 GB, free: 8.031 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.356e-05/0.5647, allocations: 4 kB / 0.6142 GB, free: 8.027 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.348e-05/0.5647, allocations: 4 kB / 0.6142 GB, free: 8.023 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.31e-05/0.5648, allocations: 7.969 kB / 0.6142 GB, free: 8.016 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.856e-06/0.5648, allocations: 0 / 0.6142 GB, free: 8.016 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.497e-05/0.5648, allocations: 75.28 kB / 0.6143 GB, free: 7.941 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5648, allocations: 7.938 kB / 0.6143 GB, free: 7.934 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003521/0.5652, allocations: 75.91 kB / 0.6144 GB, free: 7.859 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.001/0.5662, allocations: 0.8811 MB / 0.6153 GB, free: 7.035 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 9.725e-05/0.5663, allocations: 55.41 kB / 0.6153 GB, free: 6.969 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/0.5663, allocations: 4 kB / 0.6153 GB, free: 6.965 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 4.671e-05/0.5663, allocations: 63.33 kB / 0.6154 GB, free: 6.891 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001185/0.5665, allocations: 4 kB / 0.6154 GB, free: 6.887 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003789/0.5669, allocations: 147.5 kB / 0.6155 GB, free: 6.703 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002386/0.5671, allocations: 0.677 MB / 0.6162 GB, free: 6 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 1.396e-05/0.5671, allocations: 0 / 0.6162 GB, free: 6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.285e-05/0.5672, allocations: 15.38 kB / 0.6162 GB, free: 5.988 MB / 426.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5672, allocations: 0 / 0.6162 GB, free: 5.988 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0168/0.584, allocations: 2.257 MB / 0.6184 GB, free: 3.844 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001862/0.5842, allocations: 202.1 kB / 0.6186 GB, free: 3.605 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.604/2.189, allocations: 3.938 kB / 0.6186 GB, free: 3.602 MB / 426.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.mat does not exist to compare? outputFormat=mat