Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001917/0.001917, allocations: 180.1 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 221.3 MB / 236 MB, free: 2.953 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009083/0.0009082, allocations: 98.75 kB / 287 MB, free: 244 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.217/0.217, allocations: 44.15 MB / 382 MB, free: 14.67 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.521e-05/3.55e-05, allocations: 224 / 451.9 MB, free: 9.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1469/0.1469, allocations: 61.92 MB / 0.5018 GB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.484/0.631, allocations: 85.59 MB / 0.5854 GB, free: 3.656 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002997/0.6313, allocations: 59.97 kB / 0.5854 GB, free: 3.598 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003788/0.6351, allocations: 1.436 MB / 0.5868 GB, free: 2.176 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.6352, allocations: 0 / 0.5868 GB, free: 2.176 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.6352, allocations: 0 / 0.5868 GB, free: 2.176 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.0003187/0.6355, allocations: 344.3 kB / 0.5872 GB, free: 1.789 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.548e-05/0.6356, allocations: 12.03 kB / 0.5872 GB, free: 1.777 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.91e-05/0.6356, allocations: 30.56 kB / 0.5872 GB, free: 1.738 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.456e-05/0.6356, allocations: 4 kB / 0.5872 GB, free: 1.734 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001134/0.6358, allocations: 163.1 kB / 0.5874 GB, free: 1.535 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.186e-05/0.6358, allocations: 0 / 0.5874 GB, free: 1.535 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.31e-05/0.6358, allocations: 7.938 kB / 0.5874 GB, free: 1.527 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.052e-05/0.6359, allocations: 29.7 kB / 0.5874 GB, free: 1.492 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.6359, allocations: 3.938 kB / 0.5874 GB, free: 1.488 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.748e-06/0.6359, allocations: 3.938 kB / 0.5874 GB, free: 1.484 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.6359, allocations: 0 / 0.5874 GB, free: 1.484 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.254e-05/0.636, allocations: 8 kB / 0.5874 GB, free: 1.477 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000141/0.6361, allocations: 149.7 kB / 0.5876 GB, free: 1.281 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.575e-05/0.6362, allocations: 18.67 kB / 0.5876 GB, free: 1.254 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.41e-05/0.6362, allocations: 4.859 kB / 0.5876 GB, free: 1.246 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.885e-06/0.6362, allocations: 0 / 0.5876 GB, free: 1.246 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.275e-05/0.6363, allocations: 64.2 kB / 0.5876 GB, free: 1.168 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.6363, allocations: 0 / 0.5876 GB, free: 1.168 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001692/0.6364, allocations: 67.38 kB / 0.5877 GB, free: 1.09 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.22e-05/0.6365, allocations: 85.09 kB / 0.5878 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.54e-05/0.6366, allocations: 85 kB / 0.5879 GB, free: 0.8984 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.6366, allocations: 25.7 kB / 0.5879 GB, free: 0.8672 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.754e-05/0.6366, allocations: 83.09 kB / 0.588 GB, free: 0.7852 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.618e-05/0.6366, allocations: 4 kB / 0.588 GB, free: 0.7812 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.234e-06/0.6367, allocations: 0 / 0.588 GB, free: 0.7812 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.6368, allocations: 310.8 kB / 0.5883 GB, free: 480 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.055e-06/0.6368, allocations: 0 / 0.5883 GB, free: 480 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.589e-06/0.6368, allocations: 4 kB / 0.5883 GB, free: 476 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.16e-05/0.6368, allocations: 33.7 kB / 0.5883 GB, free: 436 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.6368, allocations: 0 / 0.5883 GB, free: 436 kB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.327e-05/0.6369, allocations: 67.33 kB / 0.5884 GB, free: 356 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.074e-05/0.637, allocations: 30.95 kB / 0.5884 GB, free: 320 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.483e-06/0.637, allocations: 0 / 0.5884 GB, free: 320 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.637, allocations: 3.953 kB / 0.5884 GB, free: 316 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.253e-06/0.637, allocations: 0 / 0.5884 GB, free: 316 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.75e-06/0.637, allocations: 0 / 0.5884 GB, free: 316 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.17e-05/0.637, allocations: 8.094 kB / 0.5884 GB, free: 308 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.294e-06/0.637, allocations: 0 / 0.5884 GB, free: 308 kB / 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 9.169e-05/0.6371, allocations: 126.7 kB / 0.5885 GB, free: 168 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.659e-06/0.6372, allocations: 4.5 kB / 0.5885 GB, free: 164 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.744e-05/0.6372, allocations: 11.06 kB / 0.5886 GB, free: 148 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.6372, allocations: 3.953 kB / 0.5886 GB, free: 144 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.6372, allocations: 0 / 0.5886 GB, free: 144 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.6372, allocations: 0 / 0.5886 GB, free: 144 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001374/0.6373, allocations: 146.2 kB / 0.5887 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.6374, allocations: 4 kB / 0.5887 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.6374, allocations: 4 kB / 0.5887 GB, free: 15.94 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-06/0.6374, allocations: 0 / 0.5887 GB, free: 15.94 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.6374, allocations: 4 kB / 0.5887 GB, free: 15.94 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.6374, allocations: 3.828 kB / 0.5887 GB, free: 15.94 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.84e-06/0.6374, allocations: 7.938 kB / 0.5887 GB, free: 15.93 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001025/0.6375, allocations: 94.72 kB / 0.5888 GB, free: 15.81 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.521e-05/0.6376, allocations: 77.11 kB / 0.5889 GB, free: 15.72 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.416e-05/0.6376, allocations: 8.016 kB / 0.5889 GB, free: 15.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.985e-06/0.6376, allocations: 0 / 0.5889 GB, free: 15.71 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.719e-05/0.6376, allocations: 4 kB / 0.5889 GB, free: 15.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.709e-06/0.6376, allocations: 3.953 kB / 0.5889 GB, free: 15.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.083e-05/0.6377, allocations: 75.28 kB / 0.589 GB, free: 15.63 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6377, allocations: 0 / 0.589 GB, free: 15.63 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002065/0.6379, allocations: 20 kB / 0.589 GB, free: 15.61 MB / 410.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.0007293/0.6386, allocations: 0.7311 MB / 0.5897 GB, free: 14.89 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001011/0.6387, allocations: 59.41 kB / 0.5898 GB, free: 14.82 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.6388, allocations: 0 / 0.5898 GB, free: 14.82 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 4.201e-05/0.6388, allocations: 55.41 kB / 0.5898 GB, free: 14.75 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.321e-05/0.6389, allocations: 4.938 kB / 0.5898 GB, free: 14.75 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002679/0.6392, allocations: 101.6 kB / 0.5899 GB, free: 14.61 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002597/0.6394, allocations: 0.677 MB / 0.5906 GB, free: 13.91 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 8.576e-06/0.6394, allocations: 3.984 kB / 0.5906 GB, free: 13.91 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.337e-05/0.6395, allocations: 7.438 kB / 0.5906 GB, free: 13.9 MB / 410.7 MB Notification: Performance of SimCode: time 2.5e-07/0.6395, allocations: 0 / 0.5906 GB, free: 13.9 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0128/0.6523, allocations: 1.156 MB / 0.5917 GB, free: 12.82 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001879/0.6525, allocations: 177.5 kB / 0.5919 GB, free: 12.61 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.586/2.239, allocations: 0 / 0.5919 GB, free: 12.61 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.mat does not exist to compare? outputFormat=mat