Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.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.TestWriteFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001285/0.001285, allocations: 201.8 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.336/1.336, allocations: 227.2 MB / 245 MB, free: 7.621 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000881/0.000881, allocations: 96.92 kB / 297.3 MB, free: 6.184 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3264/0.3264, allocations: 45.24 MB / 394.6 MB, free: 31.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002931/0.000293, allocations: 11.98 kB / 468.5 MB, free: 7.664 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3357/0.336, allocations: 63.24 MB / 0.5193 GB, free: 43.75 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1132/0.4492, allocations: 86.72 MB / 0.6039 GB, free: 2.906 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001832/0.4495, allocations: 59.95 kB / 0.604 GB, free: 2.852 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003581/0.4531, allocations: 1.437 MB / 0.6054 GB, free: 1.418 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4531, allocations: 0 / 0.6054 GB, free: 1.418 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.648e-06/0.4531, allocations: 0 / 0.6054 GB, free: 1.418 MB / 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.0002813/0.4534, allocations: 360.2 kB / 0.6057 GB, free: 1.016 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.4534, allocations: 12.03 kB / 0.6058 GB, free: 1.004 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.197e-05/0.4535, allocations: 30.56 kB / 0.6058 GB, free: 0.9648 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.292e-05/0.4535, allocations: 0 / 0.6058 GB, free: 0.9648 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.902e-05/0.4536, allocations: 167 kB / 0.6059 GB, free: 0.7617 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.925e-06/0.4536, allocations: 1 kB / 0.6059 GB, free: 0.7617 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.196e-06/0.4536, allocations: 0 / 0.6059 GB, free: 0.7617 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.161e-05/0.4537, allocations: 34.47 kB / 0.606 GB, free: 0.7227 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.851e-06/0.4538, allocations: 0.6875 kB / 0.606 GB, free: 0.7227 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.787e-06/0.4538, allocations: 0 / 0.606 GB, free: 0.7227 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.366e-06/0.4538, allocations: 5.188 kB / 0.606 GB, free: 0.7188 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.905e-05/0.4538, allocations: 4 kB / 0.606 GB, free: 0.7148 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001325/0.4539, allocations: 152.4 kB / 0.6061 GB, free: 0.5195 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.011e-05/0.454, allocations: 14.58 kB / 0.6061 GB, free: 0.4961 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.396e-06/0.454, allocations: 4.094 kB / 0.6062 GB, free: 0.4922 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.557e-05/0.4541, allocations: 64.25 kB / 0.6062 GB, free: 424 kB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 9.71e-07/0.4541, allocations: 0 / 0.6062 GB, free: 424 kB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.000163/0.4542, allocations: 64.03 kB / 0.6063 GB, free: 348 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.431e-05/0.4543, allocations: 77.67 kB / 0.6063 GB, free: 252 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.627e-05/0.4543, allocations: 86.66 kB / 0.6064 GB, free: 160 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.794e-05/0.4544, allocations: 25.7 kB / 0.6065 GB, free: 128 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.617e-05/0.4544, allocations: 80.14 kB / 0.6065 GB, free: 44 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.608e-05/0.4544, allocations: 4 kB / 0.6065 GB, free: 40 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.446e-06/0.4544, allocations: 5.594 kB / 0.6065 GB, free: 36 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.4546, allocations: 314.8 kB / 0.6068 GB, free: 15.72 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.205e-06/0.4546, allocations: 0 / 0.6068 GB, free: 15.72 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.837e-06/0.4546, allocations: 0.7188 kB / 0.6068 GB, free: 15.72 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.92e-05/0.4546, allocations: 30.27 kB / 0.6069 GB, free: 15.68 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.4546, allocations: 4.781 kB / 0.6069 GB, free: 15.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.015e-05/0.4547, allocations: 63.3 kB / 0.6069 GB, free: 15.61 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.929e-05/0.4547, allocations: 36.33 kB / 0.607 GB, free: 15.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.4547, allocations: 3.984 kB / 0.607 GB, free: 15.56 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.4548, allocations: 4.859 kB / 0.607 GB, free: 15.56 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.153e-06/0.4548, allocations: 0 / 0.607 GB, free: 15.56 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.4548, allocations: 0.8125 kB / 0.607 GB, free: 15.56 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.171e-05/0.4548, allocations: 0 / 0.607 GB, free: 15.56 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/0.4548, allocations: 4.5 kB / 0.607 GB, free: 15.55 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 8.802e-05/0.4549, allocations: 139.3 kB / 0.6071 GB, free: 15.41 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.025e-06/0.4549, allocations: 3.953 kB / 0.6071 GB, free: 15.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.055e-05/0.4549, allocations: 6.719 kB / 0.6071 GB, free: 15.4 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-06/0.4549, allocations: 4 kB / 0.6071 GB, free: 15.4 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.455, allocations: 0 / 0.6071 GB, free: 15.4 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.455, allocations: 0 / 0.6071 GB, free: 15.4 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.727e-05/0.4551, allocations: 145.7 kB / 0.6073 GB, free: 15.21 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.4551, allocations: 0 / 0.6073 GB, free: 15.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.81e-07/0.4551, allocations: 0 / 0.6073 GB, free: 15.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.594e-06/0.4551, allocations: 6.172 kB / 0.6073 GB, free: 15.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/0.4551, allocations: 4 kB / 0.6073 GB, free: 15.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.4551, allocations: 3.938 kB / 0.6073 GB, free: 15.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4551, allocations: 4 kB / 0.6073 GB, free: 15.19 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.076e-05/0.4552, allocations: 103 kB / 0.6074 GB, free: 15.07 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.159e-05/0.4552, allocations: 77.11 kB / 0.6075 GB, free: 14.97 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.206e-05/0.4553, allocations: 3.953 kB / 0.6075 GB, free: 14.97 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.165e-06/0.4553, allocations: 0 / 0.6075 GB, free: 14.97 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.274e-05/0.4553, allocations: 0 / 0.6075 GB, free: 14.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.091e-06/0.4553, allocations: 4 kB / 0.6075 GB, free: 14.96 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.861e-05/0.4554, allocations: 75.28 kB / 0.6075 GB, free: 14.89 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4554, allocations: 0 / 0.6075 GB, free: 14.89 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002271/0.4556, allocations: 27.98 kB / 0.6076 GB, free: 14.86 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.0006168/0.4562, allocations: 0.7245 MB / 0.6083 GB, free: 14.15 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 8.276e-05/0.4563, allocations: 67.39 kB / 0.6083 GB, free: 14.07 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.4563, allocations: 0 / 0.6083 GB, free: 14.07 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 2.618e-05/0.4564, allocations: 55.47 kB / 0.6084 GB, free: 14.01 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.012e-05/0.4564, allocations: 11.12 kB / 0.6084 GB, free: 14 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002523/0.4567, allocations: 121.2 kB / 0.6085 GB, free: 13.84 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000206/0.4569, allocations: 0.677 MB / 0.6092 GB, free: 13.14 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 5.069e-06/0.4569, allocations: 0 / 0.6092 GB, free: 13.14 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.297e-06/0.4569, allocations: 7.438 kB / 0.6092 GB, free: 13.14 MB / 426.7 MB Notification: Performance of SimCode: time 2.1e-07/0.4569, allocations: 0 / 0.6092 GB, free: 13.14 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01219/0.4691, allocations: 1.154 MB / 0.6103 GB, free: 12.1 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002788/0.4695, allocations: 204 kB / 0.6105 GB, free: 11.86 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.501/1.97, allocations: 0 / 0.6105 GB, free: 11.86 MB / 426.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.mat does not exist to compare? outputFormat=mat