Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.MoistAir.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.MoistAir,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_MoistAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.MoistAir,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_MoistAir",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002233/0.002232, allocations: 177.7 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.116/2.116, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001135/0.001135, allocations: 88.12 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.224e-05/2.235e-05, allocations: 4 kB / 314.9 MB, free: 9.07 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3569/0.357, allocations: 47.57 MB / 362.4 MB, free: 45.7 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.13/11.49, allocations: 3.642 GB / 3.996 GB, free: 105.3 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002783/11.49, allocations: 67.47 kB / 3.996 GB, free: 105.3 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1756/11.66, allocations: 47.96 MB / 4.042 GB, free: 64.62 MB / 427.1 MB Notification: Performance of FrontEnd: time 2.274e-06/11.66, allocations: 0 / 4.042 GB, free: 64.62 MB / 427.1 MB Notification: Performance of Transformations before backend: time 1.632e-05/11.66, allocations: 4.75 kB / 4.042 GB, free: 64.62 MB / 427.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.002389/11.66, allocations: 0.6275 MB / 4.043 GB, free: 63.95 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.469e-05/11.66, allocations: 15.97 kB / 4.043 GB, free: 63.93 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002028/11.66, allocations: 19.81 kB / 4.043 GB, free: 63.91 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002985/11.66, allocations: 210.9 kB / 4.043 GB, free: 63.66 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.866e-05/11.66, allocations: 8 kB / 4.043 GB, free: 63.66 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.7e-05/11.66, allocations: 8 kB / 4.043 GB, free: 63.65 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005463/11.66, allocations: 208.5 kB / 4.043 GB, free: 63.45 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004791/11.67, allocations: 219.7 kB / 4.044 GB, free: 63.22 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.304e-05/11.67, allocations: 0 / 4.044 GB, free: 63.22 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.094e-05/11.67, allocations: 0 / 4.044 GB, free: 63.22 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.636e-05/11.67, allocations: 12 kB / 4.044 GB, free: 63.21 MB / 427.1 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001861/11.67, allocations: 0.6234 MB / 4.044 GB, free: 62.53 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006952/11.67, allocations: 201.2 kB / 4.045 GB, free: 62.32 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002404/11.67, allocations: 105.7 kB / 4.045 GB, free: 62.21 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000394/11.67, allocations: 364.4 kB / 4.045 GB, free: 61.78 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.664e-05/11.67, allocations: 38.56 kB / 4.045 GB, free: 61.73 MB / 427.1 MB Notification: Performance of pre-optimization done (n=29): time 3.597e-06/11.67, allocations: 7.938 kB / 4.045 GB, free: 61.72 MB / 427.1 MB Notification: Performance of matching and sorting (n=36): time 0.002498/11.67, allocations: 491.5 kB / 4.045 GB, free: 61.23 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.437e-05/11.67, allocations: 81.3 kB / 4.046 GB, free: 61.14 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/11.67, allocations: 105.2 kB / 4.046 GB, free: 61.03 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 3.795e-05/11.67, allocations: 29.7 kB / 4.046 GB, free: 60.99 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.751e-05/11.67, allocations: 175 kB / 4.046 GB, free: 60.82 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001072/11.67, allocations: 126.2 kB / 4.046 GB, free: 60.7 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.07e-05/11.67, allocations: 3 kB / 4.046 GB, free: 60.7 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 7.766e-05/11.67, allocations: 322.8 kB / 4.046 GB, free: 60.37 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002617/11.67, allocations: 104 kB / 4.046 GB, free: 60.27 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003003/11.67, allocations: 175.8 kB / 4.047 GB, free: 60.07 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000492/11.67, allocations: 141.6 kB / 4.047 GB, free: 59.93 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/11.67, allocations: 0 / 4.047 GB, free: 59.93 MB / 427.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009629/11.67, allocations: 345 kB / 4.047 GB, free: 59.59 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/11.67, allocations: 15.95 kB / 4.047 GB, free: 59.58 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/11.67, allocations: 0 / 4.047 GB, free: 59.58 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.578e-05/11.67, allocations: 7.938 kB / 4.047 GB, free: 59.57 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008731/11.68, allocations: 87.88 kB / 4.047 GB, free: 59.48 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/11.68, allocations: 4 kB / 4.047 GB, free: 59.48 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005527/11.68, allocations: 27.81 kB / 4.047 GB, free: 59.45 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.218e-05/11.68, allocations: 20 kB / 4.047 GB, free: 59.43 MB / 427.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * 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.0001301/11.68, allocations: 104.9 kB / 4.047 GB, free: 59.32 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000881/11.68, allocations: 313.2 kB / 4.048 GB, free: 59.01 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.382e-05/11.68, allocations: 23.77 kB / 4.048 GB, free: 58.99 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006258/11.68, allocations: 170.3 kB / 4.048 GB, free: 58.81 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/11.68, allocations: 4 kB / 4.048 GB, free: 58.81 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.799e-06/11.68, allocations: 0 / 4.048 GB, free: 58.81 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.847e-06/11.68, allocations: 7.922 kB / 4.048 GB, free: 58.8 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001658/11.68, allocations: 0.652 MB / 4.048 GB, free: 58.09 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/11.68, allocations: 0 / 4.048 GB, free: 58.09 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007814/11.68, allocations: 88.03 kB / 4.048 GB, free: 58.01 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.024e-05/11.68, allocations: 0 / 4.048 GB, free: 58.01 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.038e-05/11.68, allocations: 7.984 kB / 4.048 GB, free: 58 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.314e-06/11.68, allocations: 8 kB / 4.048 GB, free: 57.99 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.174e-06/11.68, allocations: 7.953 kB / 4.049 GB, free: 57.98 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001249/11.68, allocations: 0.6876 MB / 4.049 GB, free: 57.23 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002136/11.68, allocations: 128.9 kB / 4.049 GB, free: 57.09 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.611e-05/11.68, allocations: 0 / 4.049 GB, free: 57.09 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006122/11.68, allocations: 22.38 kB / 4.049 GB, free: 57.07 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.888e-05/11.68, allocations: 27.95 kB / 4.049 GB, free: 57.04 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.699e-05/11.68, allocations: 15.92 kB / 4.049 GB, free: 57.02 MB / 427.1 MB Notification: Performance of sorting global known variables: time 6.254e-05/11.68, allocations: 91.28 kB / 4.049 GB, free: 56.93 MB / 427.1 MB Notification: Performance of sort global known variables: time 3.81e-07/11.68, allocations: 4 kB / 4.049 GB, free: 56.93 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.0009914/11.68, allocations: 167.8 kB / 4.05 GB, free: 56.77 MB / 427.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (medium.p,medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * 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.002823/11.69, allocations: 2.285 MB / 4.052 GB, free: 54.42 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.0007607/11.69, allocations: 269.6 kB / 4.052 GB, free: 54.16 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/11.69, allocations: 4 kB / 4.052 GB, free: 54.15 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003099/11.69, allocations: 147.6 kB / 4.052 GB, free: 54.01 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00101/11.69, allocations: 84.22 kB / 4.052 GB, free: 53.93 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002086/11.69, allocations: 0.5603 MB / 4.053 GB, free: 53.31 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002397/11.69, allocations: 0.7452 MB / 4.054 GB, free: 52.54 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003034/11.69, allocations: 71.39 kB / 4.054 GB, free: 52.46 MB / 427.1 MB Notification: Performance of SimCode: time 1.433e-06/11.69, allocations: 0 / 4.054 GB, free: 52.46 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.831/14.52, allocations: 7.823 MB / 4.061 GB, free: 44.64 MB / 427.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.MoistAir.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.MoistAir.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.MoistAir.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.MoistAir.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.MoistAir_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_MoistAir_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 Modelica_3_2_3_cpp_Modelica_Media_Examples_MoistAir.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.MoistAir.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.MoistAir_res.mat does not exist to compare? outputFormat=mat