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.001245/0.001245, allocations: 196.9 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.34/1.34, allocations: 225.4 MB / 240.1 MB, free: 15.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009321/0.0009321, allocations: 86.59 kB / 292.1 MB, free: 5.906 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.182/0.182, allocations: 45.15 MB / 389.3 MB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.345e-05/3.347e-05, allocations: 4 kB / 460.5 MB, free: 69.95 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1063, allocations: 63.25 MB / 0.5114 GB, free: 6.73 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3833/0.4897, allocations: 86.65 MB / 0.5961 GB, free: 7.27 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001833/0.4899, allocations: 62.09 kB / 0.5961 GB, free: 7.238 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003443/0.4934, allocations: 1.437 MB / 0.5975 GB, free: 5.992 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.4934, allocations: 0 / 0.5975 GB, free: 5.992 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.4934, allocations: 0 / 0.5975 GB, free: 5.992 MB / 394.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.0002721/0.4937, allocations: 355.4 kB / 0.5979 GB, free: 5.602 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.4937, allocations: 11.97 kB / 0.5979 GB, free: 5.59 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.92e-05/0.4938, allocations: 30.56 kB / 0.5979 GB, free: 5.551 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.966e-05/0.4938, allocations: 0 / 0.5979 GB, free: 5.551 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.242e-05/0.4939, allocations: 163 kB / 0.5981 GB, free: 5.352 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.039e-05/0.4939, allocations: 0 / 0.5981 GB, free: 5.352 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.756e-06/0.4939, allocations: 4 kB / 0.5981 GB, free: 5.348 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.319e-05/0.494, allocations: 29.64 kB / 0.5981 GB, free: 5.312 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.494, allocations: 0 / 0.5981 GB, free: 5.312 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.715e-06/0.494, allocations: 4 kB / 0.5981 GB, free: 5.309 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.494, allocations: 7.984 kB / 0.5981 GB, free: 5.301 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.581e-05/0.4941, allocations: 0 / 0.5981 GB, free: 5.301 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001246/0.4942, allocations: 152.3 kB / 0.5982 GB, free: 5.105 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.971e-05/0.4942, allocations: 18.61 kB / 0.5983 GB, free: 5.078 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.206e-05/0.4943, allocations: 4.859 kB / 0.5983 GB, free: 5.07 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.255e-06/0.4943, allocations: 3.938 kB / 0.5983 GB, free: 5.066 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.192e-05/0.4943, allocations: 67.7 kB / 0.5983 GB, free: 4.988 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.894e-06/0.4943, allocations: 0 / 0.5983 GB, free: 4.988 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001377/0.4945, allocations: 66.11 kB / 0.5984 GB, free: 4.914 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.178e-05/0.4945, allocations: 77.11 kB / 0.5985 GB, free: 4.82 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.468e-05/0.4946, allocations: 89 kB / 0.5986 GB, free: 4.727 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.085e-05/0.4946, allocations: 25.7 kB / 0.5986 GB, free: 4.695 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.51e-05/0.4946, allocations: 80.14 kB / 0.5987 GB, free: 4.613 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.461e-05/0.4946, allocations: 0 / 0.5987 GB, free: 4.613 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.074e-06/0.4947, allocations: 0 / 0.5987 GB, free: 4.613 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.4948, allocations: 318.4 kB / 0.599 GB, free: 4.297 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.704e-06/0.4948, allocations: 0 / 0.599 GB, free: 4.297 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.121e-06/0.4948, allocations: 4 kB / 0.599 GB, free: 4.293 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.67e-05/0.4948, allocations: 29.64 kB / 0.599 GB, free: 4.258 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.4948, allocations: 3.953 kB / 0.599 GB, free: 4.254 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.496e-05/0.4949, allocations: 63.39 kB / 0.5991 GB, free: 4.18 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.733e-05/0.495, allocations: 29.7 kB / 0.5991 GB, free: 4.145 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.495, allocations: 0 / 0.5991 GB, free: 4.145 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.495, allocations: 8.094 kB / 0.5991 GB, free: 4.137 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.495, allocations: 0 / 0.5991 GB, free: 4.137 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.189e-06/0.495, allocations: 0 / 0.5991 GB, free: 4.137 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.065e-05/0.495, allocations: 0 / 0.5991 GB, free: 4.137 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.495, allocations: 0 / 0.5991 GB, free: 4.137 MB / 394.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 () * 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.115e-05/0.4951, allocations: 137.7 kB / 0.5992 GB, free: 3.992 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.835e-06/0.4951, allocations: 3.953 kB / 0.5992 GB, free: 3.988 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.289e-05/0.4951, allocations: 7.078 kB / 0.5992 GB, free: 3.98 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.12e-07/0.4951, allocations: 0 / 0.5992 GB, free: 3.98 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.4952, allocations: 7.938 kB / 0.5992 GB, free: 3.973 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.033e-06/0.4952, allocations: 3.938 kB / 0.5992 GB, free: 3.969 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.955e-05/0.4953, allocations: 145.7 kB / 0.5994 GB, free: 3.777 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.4953, allocations: 0 / 0.5994 GB, free: 3.777 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.885e-06/0.4953, allocations: 7.938 kB / 0.5994 GB, free: 3.77 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.4953, allocations: 0 / 0.5994 GB, free: 3.77 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.793e-06/0.4953, allocations: 4 kB / 0.5994 GB, free: 3.766 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.4953, allocations: 0 / 0.5994 GB, free: 3.766 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.4953, allocations: 3.938 kB / 0.5994 GB, free: 3.762 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.052e-05/0.4954, allocations: 90.16 kB / 0.5995 GB, free: 3.652 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.273e-05/0.4954, allocations: 81.09 kB / 0.5996 GB, free: 3.555 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.552e-05/0.4955, allocations: 7.953 kB / 0.5996 GB, free: 3.547 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.925e-06/0.4955, allocations: 0 / 0.5996 GB, free: 3.547 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.381e-05/0.4955, allocations: 0 / 0.5996 GB, free: 3.547 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.336e-06/0.4955, allocations: 3.312 kB / 0.5996 GB, free: 3.547 MB / 394.7 MB Notification: Performance of sorting global known variables: time 2.455e-05/0.4955, allocations: 75.28 kB / 0.5996 GB, free: 3.473 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4955, allocations: 0 / 0.5996 GB, free: 3.473 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002154/0.4958, allocations: 20 kB / 0.5997 GB, free: 3.453 MB / 394.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) * 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.0006064/0.4964, allocations: 0.7336 MB / 0.6004 GB, free: 2.727 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.018e-05/0.4965, allocations: 55.41 kB / 0.6004 GB, free: 2.66 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4965, allocations: 0 / 0.6004 GB, free: 2.66 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.944e-05/0.4965, allocations: 59.47 kB / 0.6005 GB, free: 2.59 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.459e-05/0.4966, allocations: 15.83 kB / 0.6005 GB, free: 2.574 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002429/0.4968, allocations: 92.27 kB / 0.6006 GB, free: 2.453 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002448/0.4971, allocations: 0.677 MB / 0.6013 GB, free: 1.75 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 5.3e-06/0.4971, allocations: 0 / 0.6013 GB, free: 1.75 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.368e-05/0.4971, allocations: 7.438 kB / 0.6013 GB, free: 1.742 MB / 394.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4971, allocations: 3.938 kB / 0.6013 GB, free: 1.738 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01075/0.5079, allocations: 1.149 MB / 0.6024 GB, free: 0.6875 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001472/0.5081, allocations: 180.1 kB / 0.6026 GB, free: 476 kB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.369/1.877, allocations: 0 / 0.6026 GB, free: 476 kB / 394.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