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.001151/0.001151, allocations: 179.6 kB / 17.06 MB, free: 5.094 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.337/1.337, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008055/0.0008055, allocations: 94.16 kB / 292.1 MB, free: 10.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3388/0.3388, allocations: 44.22 MB / 387.5 MB, free: 38.86 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000351/0.0003511, allocations: 8 kB / 460 MB, free: 1.438 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3441/0.3444, allocations: 61.9 MB / 0.5096 GB, free: 38.3 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1223/0.4668, allocations: 85.69 MB / 0.5933 GB, free: 9.434 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000235/0.4671, allocations: 63.94 kB / 0.5934 GB, free: 9.375 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004093/0.4712, allocations: 1.429 MB / 0.5948 GB, free: 7.945 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.4712, allocations: 0 / 0.5948 GB, free: 7.945 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.059e-06/0.4713, allocations: 0 / 0.5948 GB, free: 7.945 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.0003071/0.4716, allocations: 349.1 kB / 0.5951 GB, free: 7.551 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.4716, allocations: 16.03 kB / 0.5951 GB, free: 7.535 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.429e-05/0.4717, allocations: 30.56 kB / 0.5951 GB, free: 7.496 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.335e-05/0.4717, allocations: 0 / 0.5951 GB, free: 7.496 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001018/0.4718, allocations: 163.1 kB / 0.5953 GB, free: 7.297 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.159e-05/0.4718, allocations: 0 / 0.5953 GB, free: 7.297 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.131e-05/0.4718, allocations: 7.938 kB / 0.5953 GB, free: 7.289 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001105/0.472, allocations: 33.69 kB / 0.5953 GB, free: 7.25 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.472, allocations: 0 / 0.5953 GB, free: 7.25 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.274e-06/0.472, allocations: 0 / 0.5953 GB, free: 7.25 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.472, allocations: 0 / 0.5953 GB, free: 7.25 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.215e-05/0.472, allocations: 11.94 kB / 0.5954 GB, free: 7.238 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001351/0.4722, allocations: 141.7 kB / 0.5955 GB, free: 7.051 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.279e-05/0.4722, allocations: 22.5 kB / 0.5955 GB, free: 7.02 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.508e-06/0.4722, allocations: 4.094 kB / 0.5955 GB, free: 7.016 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.615e-05/0.4723, allocations: 68.22 kB / 0.5956 GB, free: 6.934 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 1.262e-06/0.4723, allocations: 0 / 0.5956 GB, free: 6.934 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001959/0.4725, allocations: 67.34 kB / 0.5956 GB, free: 6.855 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.642e-05/0.4726, allocations: 81.14 kB / 0.5957 GB, free: 6.758 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.127e-05/0.4726, allocations: 85 kB / 0.5958 GB, free: 6.668 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.49e-05/0.4727, allocations: 25.7 kB / 0.5958 GB, free: 6.637 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.351e-05/0.4727, allocations: 84.12 kB / 0.5959 GB, free: 6.551 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.934e-05/0.4727, allocations: 4 kB / 0.5959 GB, free: 6.547 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.592e-06/0.4727, allocations: 0 / 0.5959 GB, free: 6.547 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.4729, allocations: 314.8 kB / 0.5962 GB, free: 6.23 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.428e-06/0.4729, allocations: 0 / 0.5962 GB, free: 6.23 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.32e-06/0.4729, allocations: 4 kB / 0.5962 GB, free: 6.227 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.204e-05/0.4729, allocations: 29.7 kB / 0.5962 GB, free: 6.191 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.473, allocations: 0 / 0.5962 GB, free: 6.191 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.667e-05/0.473, allocations: 59.34 kB / 0.5963 GB, free: 6.121 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.07e-05/0.4731, allocations: 37.69 kB / 0.5963 GB, free: 6.078 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.4731, allocations: 0 / 0.5963 GB, free: 6.078 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.4731, allocations: 3.953 kB / 0.5963 GB, free: 6.074 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.293e-06/0.4731, allocations: 0 / 0.5963 GB, free: 6.074 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.4731, allocations: 0 / 0.5963 GB, free: 6.074 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.431e-05/0.4731, allocations: 4.094 kB / 0.5963 GB, free: 6.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.014e-05/0.4732, allocations: 4 kB / 0.5963 GB, free: 6.066 MB / 410.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.000104/0.4733, allocations: 136.1 kB / 0.5965 GB, free: 5.918 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.646e-06/0.4733, allocations: 0 / 0.5965 GB, free: 5.918 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.629e-05/0.4733, allocations: 10.66 kB / 0.5965 GB, free: 5.91 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.4733, allocations: 4 kB / 0.5965 GB, free: 5.906 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.237e-06/0.4733, allocations: 7.938 kB / 0.5965 GB, free: 5.898 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.4733, allocations: 0 / 0.5965 GB, free: 5.898 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001089/0.4735, allocations: 145.7 kB / 0.5966 GB, free: 5.707 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.4735, allocations: 4 kB / 0.5966 GB, free: 5.703 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.042e-06/0.4735, allocations: 0 / 0.5966 GB, free: 5.703 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.4735, allocations: 0 / 0.5966 GB, free: 5.703 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/0.4735, allocations: 4 kB / 0.5966 GB, free: 5.699 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.4735, allocations: 0 / 0.5966 GB, free: 5.699 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.4735, allocations: 3.938 kB / 0.5966 GB, free: 5.695 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001023/0.4736, allocations: 98.72 kB / 0.5967 GB, free: 5.574 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.98e-05/0.4737, allocations: 77.11 kB / 0.5968 GB, free: 5.48 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.397e-05/0.4737, allocations: 4.031 kB / 0.5968 GB, free: 5.477 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.188e-05/0.4737, allocations: 3.984 kB / 0.5968 GB, free: 5.473 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.505e-05/0.4737, allocations: 0 / 0.5968 GB, free: 5.473 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.418e-06/0.4737, allocations: 4 kB / 0.5968 GB, free: 5.469 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.803e-05/0.4738, allocations: 79.23 kB / 0.5969 GB, free: 5.391 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4738, allocations: 0 / 0.5969 GB, free: 5.391 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002324/0.474, allocations: 24 kB / 0.5969 GB, free: 5.367 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) * 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.0007228/0.4747, allocations: 0.7294 MB / 0.5976 GB, free: 4.645 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.758e-05/0.4749, allocations: 63.34 kB / 0.5977 GB, free: 4.57 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.4749, allocations: 0 / 0.5977 GB, free: 4.57 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 4.166e-05/0.4749, allocations: 55.41 kB / 0.5977 GB, free: 4.504 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.929e-05/0.475, allocations: 0 / 0.5977 GB, free: 4.504 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003138/0.4753, allocations: 130.8 kB / 0.5979 GB, free: 4.336 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003017/0.4756, allocations: 0.677 MB / 0.5985 GB, free: 3.633 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 7.624e-06/0.4757, allocations: 0 / 0.5985 GB, free: 3.633 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.666e-05/0.4757, allocations: 7.438 kB / 0.5985 GB, free: 3.625 MB / 410.7 MB Notification: Performance of SimCode: time 3.1e-07/0.4757, allocations: 0 / 0.5985 GB, free: 3.625 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01328/0.489, allocations: 1.161 MB / 0.5997 GB, free: 2.57 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002202/0.4892, allocations: 205.7 kB / 0.5999 GB, free: 2.336 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.474/1.964, allocations: 0 / 0.5999 GB, free: 2.336 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