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.001613/0.001616, allocations: 188.1 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.094/2.094, allocations: 205.4 MB / 222.5 MB, free: 13.76 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.00118/0.001179, allocations: 86.94 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004006/0.0004009, allocations: 8 kB / 327.1 MB, free: 14.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1014, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MoistAir): time 0.5285/0.63, allocations: 127.3 MB / 0.4902 GB, free: 13.93 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002371/0.6324, allocations: 1.357 MB / 0.4915 GB, free: 12.57 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.873e-05/0.6325, allocations: 0 / 0.4915 GB, free: 12.57 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003306/0.6329, allocations: 51.78 kB / 0.4916 GB, free: 12.52 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004021/0.6333, allocations: 111.6 kB / 0.4917 GB, free: 12.41 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002488/0.6358, allocations: 0.6008 MB / 0.4922 GB, free: 11.81 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003716/0.6362, allocations: 191.6 kB / 0.4924 GB, free: 11.62 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.177e-05/0.6362, allocations: 9.453 kB / 0.4924 GB, free: 11.61 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004756/0.6367, allocations: 163.6 kB / 0.4926 GB, free: 11.45 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002328/0.637, allocations: 91.72 kB / 0.4927 GB, free: 11.36 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.229e-05/0.637, allocations: 8 kB / 0.4927 GB, free: 11.36 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003088/0.6401, allocations: 1.17 MB / 0.4938 GB, free: 10.18 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001263/0.6403, allocations: 55.88 kB / 0.4939 GB, free: 10.13 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 8.726e-05/0.6404, allocations: 57.62 kB / 0.4939 GB, free: 10.07 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001289/0.6417, allocations: 0.5124 MB / 0.4944 GB, free: 9.559 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.6417, allocations: 0 / 0.4944 GB, free: 9.559 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.6417, allocations: 4 kB / 0.4944 GB, free: 9.555 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.6417, allocations: 0 / 0.4944 GB, free: 9.555 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.002351/0.6441, allocations: 0.609 MB / 0.495 GB, free: 8.898 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/0.6441, allocations: 12.03 kB / 0.495 GB, free: 8.887 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.649e-05/0.6442, allocations: 50.55 kB / 0.4951 GB, free: 8.828 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001714/0.6444, allocations: 23.8 kB / 0.4951 GB, free: 8.805 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000329/0.6448, allocations: 206.9 kB / 0.4953 GB, free: 8.562 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.19e-05/0.6448, allocations: 12.33 kB / 0.4953 GB, free: 8.551 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.743e-05/0.6449, allocations: 20 kB / 0.4953 GB, free: 8.531 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009088/0.6458, allocations: 261.4 kB / 0.4956 GB, free: 8.266 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.893e-05/0.6458, allocations: 0 / 0.4956 GB, free: 8.266 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.415e-05/0.6459, allocations: 4 kB / 0.4956 GB, free: 8.262 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.744e-05/0.6459, allocations: 8.656 kB / 0.4956 GB, free: 8.254 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001128/0.6471, allocations: 271.7 kB / 0.4959 GB, free: 7.988 MB / 378.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.002236/0.6493, allocations: 0.7897 MB / 0.4966 GB, free: 7.121 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001048/0.6504, allocations: 217.2 kB / 0.4968 GB, free: 6.891 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004739/0.6509, allocations: 364.3 kB / 0.4972 GB, free: 6.461 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.701e-05/0.6509, allocations: 38.98 kB / 0.4972 GB, free: 6.414 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 2.835e-06/0.6509, allocations: 3.562 kB / 0.4972 GB, free: 6.414 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.004196/0.6551, allocations: 0.6568 MB / 0.4979 GB, free: 5.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.807e-05/0.6552, allocations: 92.98 kB / 0.498 GB, free: 5.641 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001472/0.6554, allocations: 129.8 kB / 0.4981 GB, free: 5.504 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.569e-05/0.6555, allocations: 37.7 kB / 0.4981 GB, free: 5.461 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.852e-05/0.6556, allocations: 167.2 kB / 0.4983 GB, free: 5.297 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001532/0.6557, allocations: 126.2 kB / 0.4984 GB, free: 5.172 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.855e-05/0.6558, allocations: 8 kB / 0.4984 GB, free: 5.164 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.656, allocations: 326.8 kB / 0.4987 GB, free: 4.836 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006808/0.6566, allocations: 139.8 kB / 0.4989 GB, free: 4.699 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000748/0.6574, allocations: 199.6 kB / 0.499 GB, free: 4.477 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007517/0.6582, allocations: 155.9 kB / 0.4992 GB, free: 4.324 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.6582, allocations: 0 / 0.4992 GB, free: 4.324 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001696/0.6599, allocations: 401.1 kB / 0.4996 GB, free: 3.926 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.6599, allocations: 4 kB / 0.4996 GB, free: 3.922 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.66, allocations: 4 kB / 0.4996 GB, free: 3.918 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.107e-05/0.66, allocations: 8.219 kB / 0.4996 GB, free: 3.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008857/0.6609, allocations: 87.88 kB / 0.4997 GB, free: 3.824 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.356e-05/0.6609, allocations: 4 kB / 0.4997 GB, free: 3.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000563/0.6615, allocations: 28.55 kB / 0.4997 GB, free: 3.793 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.106e-05/0.6616, allocations: 15.98 kB / 0.4997 GB, free: 3.777 MB / 378.7 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 () * Number of clocked 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.0002331/0.6618, allocations: 153.7 kB / 0.4999 GB, free: 3.617 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.6619, allocations: 15.81 kB / 0.4999 GB, free: 3.602 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005847/0.6625, allocations: 171.7 kB / 0.5 GB, free: 3.426 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.6625, allocations: 8 kB / 0.5001 GB, free: 3.418 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.6626, allocations: 0 / 0.5001 GB, free: 3.418 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.6626, allocations: 7.922 kB / 0.5001 GB, free: 3.414 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002783/0.6654, allocations: 0.7484 MB / 0.5008 GB, free: 2.594 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/0.6654, allocations: 4 kB / 0.5008 GB, free: 2.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008396/0.6662, allocations: 87.98 kB / 0.5009 GB, free: 2.504 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.041e-05/0.6663, allocations: 4 kB / 0.5009 GB, free: 2.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.63e-05/0.6663, allocations: 11.94 kB / 0.5009 GB, free: 2.488 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.919e-06/0.6663, allocations: 4 kB / 0.5009 GB, free: 2.484 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.229e-06/0.6664, allocations: 7.922 kB / 0.5009 GB, free: 2.477 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002476/0.6688, allocations: 0.7756 MB / 0.5017 GB, free: 1.633 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002021/0.6691, allocations: 124.8 kB / 0.5018 GB, free: 1.492 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.587e-05/0.6691, allocations: 12 kB / 0.5018 GB, free: 1.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005974/0.6697, allocations: 19.97 kB / 0.5018 GB, free: 1.461 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.859e-05/0.6698, allocations: 31.89 kB / 0.5018 GB, free: 1.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.144e-05/0.6699, allocations: 12 kB / 0.5019 GB, free: 1.418 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001006/0.67, allocations: 95.27 kB / 0.5019 GB, free: 1.324 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.67, allocations: 4 kB / 0.502 GB, free: 1.32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008036/0.6708, allocations: 143.9 kB / 0.5021 GB, free: 1.18 MB / 378.7 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 () * Number of clocked 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.003544/0.6744, allocations: 1.845 MB / 0.5039 GB, free: 15.27 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001549/0.676, allocations: 332.4 kB / 0.5042 GB, free: 14.95 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/0.676, allocations: 4 kB / 0.5042 GB, free: 14.94 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000735/0.6767, allocations: 174.6 kB / 0.5044 GB, free: 14.77 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009759/0.6777, allocations: 86.25 kB / 0.5045 GB, free: 14.69 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005817/0.6836, allocations: 2.81 MB / 0.5072 GB, free: 11.78 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00043/0.684, allocations: 0.7373 MB / 0.5079 GB, free: 11.02 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003605/0.6844, allocations: 71.39 kB / 0.508 GB, free: 10.95 MB / 394.7 MB Notification: Performance of SimCode: time 1.012e-06/0.6844, allocations: 4 kB / 0.508 GB, free: 10.94 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.927/3.612, allocations: 5.131 MB / 0.513 GB, free: 5.805 MB / 394.7 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