Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.IdealGasH2O.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.IdealGasH2O,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_IdealGasH2O",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_IdealGasH2O",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.002573/0.002573, allocations: 187 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.118/2.118, allocations: 205.4 MB / 222.5 MB, free: 13.75 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001151/0.00115, allocations: 98.86 kB / 270.9 MB, free: 13.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003839/0.0003839, allocations: 12 kB / 327 MB, free: 14.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0997/0.1001, allocations: 47.58 MB / 374.6 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.4703/0.5705, allocations: 125.4 MB / 0.4883 GB, free: 15.95 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003689/0.5743, allocations: 2.117 MB / 0.4904 GB, free: 13.83 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.722e-05/0.5744, allocations: 4 kB / 0.4904 GB, free: 13.83 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001623/0.5746, allocations: 23.83 kB / 0.4904 GB, free: 13.8 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001184/0.5758, allocations: 271.2 kB / 0.4907 GB, free: 13.54 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002492/0.576, allocations: 60.66 kB / 0.4907 GB, free: 13.48 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001137/0.5762, allocations: 51.92 kB / 0.4908 GB, free: 13.43 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.198e-05/0.5762, allocations: 3.984 kB / 0.4908 GB, free: 13.43 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001927/0.5764, allocations: 43.84 kB / 0.4908 GB, free: 13.38 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.405e-05/0.5765, allocations: 23.91 kB / 0.4909 GB, free: 13.36 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.417e-05/0.5766, allocations: 8 kB / 0.4909 GB, free: 13.35 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001245/0.5778, allocations: 387.5 kB / 0.4912 GB, free: 12.97 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.499e-05/0.5779, allocations: 0 / 0.4912 GB, free: 12.97 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.277e-05/0.5779, allocations: 41.64 kB / 0.4913 GB, free: 12.93 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006045/0.5785, allocations: 205.2 kB / 0.4915 GB, free: 12.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.5786, allocations: 0 / 0.4915 GB, free: 12.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.5786, allocations: 0 / 0.4915 GB, free: 12.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.5786, allocations: 0 / 0.4915 GB, free: 12.73 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.001186/0.5798, allocations: 427.8 kB / 0.4919 GB, free: 12.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.5798, allocations: 8.031 kB / 0.4919 GB, free: 12.26 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.196e-05/0.5799, allocations: 42.55 kB / 0.4919 GB, free: 12.21 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01071/0.5906, allocations: 451.8 kB / 0.4924 GB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001593/0.5908, allocations: 171.5 kB / 0.4925 GB, free: 11.56 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.002e-05/0.5909, allocations: 0 / 0.4925 GB, free: 11.56 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001362/0.591, allocations: 12 kB / 0.4925 GB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001344/0.5924, allocations: 301.2 kB / 0.4928 GB, free: 11.25 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.5924, allocations: 0 / 0.4928 GB, free: 11.25 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.093e-05/0.5925, allocations: 4 kB / 0.4928 GB, free: 11.24 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.238e-06/0.5925, allocations: 3.938 kB / 0.4928 GB, free: 11.24 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001447/0.594, allocations: 275.8 kB / 0.4931 GB, free: 10.97 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001498/0.5955, allocations: 433.2 kB / 0.4935 GB, free: 10.49 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00171/0.5972, allocations: 202.3 kB / 0.4937 GB, free: 10.29 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.275e-05/0.5973, allocations: 15.98 kB / 0.4937 GB, free: 10.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.31e-05/0.5973, allocations: 30.56 kB / 0.4937 GB, free: 10.23 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 5.24e-06/0.5974, allocations: 0 / 0.4937 GB, free: 10.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=17): time 0.002982/0.6003, allocations: 425.8 kB / 0.4942 GB, free: 9.809 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.454e-05/0.6004, allocations: 51.41 kB / 0.4942 GB, free: 9.746 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000109/0.6006, allocations: 105.8 kB / 0.4943 GB, free: 9.633 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.74e-05/0.6006, allocations: 25.7 kB / 0.4943 GB, free: 9.602 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.734e-05/0.6007, allocations: 162.4 kB / 0.4945 GB, free: 9.441 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.923e-05/0.6008, allocations: 71.03 kB / 0.4945 GB, free: 9.371 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.702e-05/0.6008, allocations: 0 / 0.4945 GB, free: 9.371 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.601, allocations: 322.8 kB / 0.4949 GB, free: 9.047 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004642/0.6015, allocations: 76.31 kB / 0.4949 GB, free: 8.973 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005199/0.602, allocations: 124.9 kB / 0.495 GB, free: 8.836 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004988/0.6025, allocations: 77.84 kB / 0.4951 GB, free: 8.762 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.6025, allocations: 0 / 0.4951 GB, free: 8.762 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.001201/0.6038, allocations: 245.3 kB / 0.4954 GB, free: 8.516 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.859e-05/0.6038, allocations: 8 kB / 0.4954 GB, free: 8.508 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.6038, allocations: 0.875 kB / 0.4954 GB, free: 8.508 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.6038, allocations: 0 / 0.4954 GB, free: 8.508 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006759/0.6045, allocations: 60.08 kB / 0.4954 GB, free: 8.449 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.6046, allocations: 0 / 0.4954 GB, free: 8.449 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004435/0.605, allocations: 11.98 kB / 0.4954 GB, free: 8.438 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.942e-05/0.6051, allocations: 15.98 kB / 0.4954 GB, free: 8.422 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001561/0.6053, allocations: 117.8 kB / 0.4956 GB, free: 8.297 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.403e-05/0.6053, allocations: 11.86 kB / 0.4956 GB, free: 8.285 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001442/0.6068, allocations: 286.2 kB / 0.4958 GB, free: 8.008 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.6068, allocations: 0 / 0.4958 GB, free: 8.008 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.441e-06/0.6068, allocations: 0 / 0.4958 GB, free: 8.008 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/0.6068, allocations: 0 / 0.4958 GB, free: 8.008 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002114/0.609, allocations: 0.5833 MB / 0.4964 GB, free: 7.363 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.609, allocations: 3.938 kB / 0.4964 GB, free: 7.363 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006201/0.6096, allocations: 59.81 kB / 0.4965 GB, free: 7.305 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.933e-06/0.6096, allocations: 0 / 0.4965 GB, free: 7.305 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.688e-05/0.6097, allocations: 4 kB / 0.4965 GB, free: 7.301 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.259e-06/0.6097, allocations: 0 / 0.4965 GB, free: 7.301 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/0.6097, allocations: 4 kB / 0.4965 GB, free: 7.297 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001188/0.6109, allocations: 356.4 kB / 0.4968 GB, free: 6.914 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.114e-05/0.611, allocations: 81.11 kB / 0.4969 GB, free: 6.816 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.845e-05/0.6111, allocations: 7.938 kB / 0.4969 GB, free: 6.809 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004709/0.6115, allocations: 11.98 kB / 0.4969 GB, free: 6.797 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.585e-05/0.6116, allocations: 23.88 kB / 0.4969 GB, free: 6.773 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.646e-05/0.6117, allocations: 11.98 kB / 0.497 GB, free: 6.762 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.224e-05/0.6118, allocations: 79.28 kB / 0.497 GB, free: 6.684 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.6118, allocations: 4 kB / 0.497 GB, free: 6.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004935/0.6123, allocations: 44 kB / 0.4971 GB, free: 6.637 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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.001783/0.6141, allocations: 1.039 MB / 0.4981 GB, free: 5.551 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0011/0.6152, allocations: 187.8 kB / 0.4983 GB, free: 5.367 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.6153, allocations: 0 / 0.4983 GB, free: 5.367 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005502/0.6158, allocations: 114 kB / 0.4984 GB, free: 5.258 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005369/0.6164, allocations: 34.94 kB / 0.4984 GB, free: 5.227 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001579/0.618, allocations: 383.7 kB / 0.4988 GB, free: 4.801 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003282/0.6183, allocations: 0.6974 MB / 0.4995 GB, free: 4.078 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003524/0.6187, allocations: 43.41 kB / 0.4995 GB, free: 4.035 MB / 378.7 MB Notification: Performance of SimCode: time 1.052e-06/0.6187, allocations: 4 kB / 0.4995 GB, free: 4.031 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.505/3.124, allocations: 2.632 MB / 0.5021 GB, free: 1.402 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.IdealGasH2O.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.IdealGasH2O.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.IdealGasH2O.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.IdealGasH2O.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.IdealGasH2O_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_IdealGasH2O_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_IdealGasH2O.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.IdealGasH2O.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.IdealGasH2O_res.mat does not exist to compare? outputFormat=mat