Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.conf.json 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/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/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.63/1.63, allocations: 223.2 MB / 239.9 MB, free: 5.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.545/2.545, allocations: 409.2 MB / 0.6838 GB, free: 0.9688 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0004205/0.0004208, allocations: 8 kB / 0.8375 GB, free: 6.555 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8877/0.8882, allocations: 146.8 MB / 0.9808 GB, free: 6.285 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.00445/0.8927, allocations: 3.396 MB / 0.9842 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0001746/0.8929, allocations: 127.7 kB / 0.9843 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.182e-05/0.8929, allocations: 3.938 kB / 0.9843 GB, free: 2.738 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001112/0.893, allocations: 7.938 kB / 0.9843 GB, free: 2.73 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 3.777e-05/0.8931, allocations: 3.984 kB / 0.9843 GB, free: 2.727 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003767/0.8934, allocations: 67.83 kB / 0.9844 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 6.799e-05/0.8935, allocations: 19.97 kB / 0.9844 GB, free: 2.641 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.994e-05/0.8936, allocations: 3.984 kB / 0.9844 GB, free: 2.637 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 3.381e-05/0.8936, allocations: 11.94 kB / 0.9844 GB, free: 2.625 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.343e-05/0.8937, allocations: 4 kB / 0.9844 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.293e-05/0.8937, allocations: 0 / 0.9844 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001701/0.8939, allocations: 39.89 kB / 0.9844 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.297e-05/0.8939, allocations: 7.984 kB / 0.9844 GB, free: 2.574 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.113e-05/0.894, allocations: 29.7 kB / 0.9845 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001167/0.8941, allocations: 30.23 kB / 0.9845 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.8941, allocations: 0 / 0.9845 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.914e-06/0.8941, allocations: 0 / 0.9845 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.519e-06/0.8941, allocations: 0 / 0.9845 GB, free: 2.512 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005191/0.8947, allocations: 327.4 kB / 0.9848 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.8947, allocations: 12.03 kB / 0.9848 GB, free: 2.133 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.447e-05/0.8948, allocations: 38.55 kB / 0.9849 GB, free: 2.086 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.967e-05/0.8948, allocations: 0 / 0.9849 GB, free: 2.086 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001208/0.8949, allocations: 163.1 kB / 0.985 GB, free: 1.887 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.938e-05/0.895, allocations: 37.64 kB / 0.9851 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.925e-06/0.895, allocations: 0 / 0.9851 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001316/0.8951, allocations: 45.62 kB / 0.9851 GB, free: 1.793 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.8952, allocations: 4 kB / 0.9851 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.007e-05/0.8952, allocations: 0 / 0.9851 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.132e-05/0.8952, allocations: 0 / 0.9851 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.02e-05/0.8953, allocations: 11.98 kB / 0.9851 GB, free: 1.777 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005126/0.8958, allocations: 342 kB / 0.9854 GB, free: 1.375 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 3.619e-05/0.8958, allocations: 18.58 kB / 0.9855 GB, free: 1.348 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 8.961e-05/0.8959, allocations: 85.11 kB / 0.9855 GB, free: 1.246 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.695e-05/0.896, allocations: 34.56 kB / 0.9856 GB, free: 1.203 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=1): time 1.021e-06/0.896, allocations: 0 / 0.9856 GB, free: 1.203 MB / 0.7325 GB Notification: Performance of matching and sorting (n=1): time 0.0001578/0.8961, allocations: 41.59 kB / 0.9856 GB, free: 1.156 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.826e-05/0.8962, allocations: 51.53 kB / 0.9857 GB, free: 1.094 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.663e-05/0.8963, allocations: 105.8 kB / 0.9858 GB, free: 0.9805 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.063e-05/0.8963, allocations: 25.7 kB / 0.9858 GB, free: 0.9492 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.651e-05/0.8963, allocations: 92.03 kB / 0.9859 GB, free: 0.8555 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.879e-06/0.8964, allocations: 0 / 0.9859 GB, free: 0.8555 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.735e-06/0.8964, allocations: 0 / 0.9859 GB, free: 0.8555 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.8965, allocations: 318.8 kB / 0.9862 GB, free: 0.5352 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.562e-05/0.8965, allocations: 4 kB / 0.9862 GB, free: 0.5312 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.649e-05/0.8965, allocations: 29.58 kB / 0.9862 GB, free: 0.4961 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.1e-05/0.8966, allocations: 8 kB / 0.9862 GB, free: 500 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.8966, allocations: 0 / 0.9862 GB, free: 500 kB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.477e-05/0.8966, allocations: 41.69 kB / 0.9863 GB, free: 452 kB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.8967, allocations: 5.719 kB / 0.9863 GB, free: 448 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.8967, allocations: 7.938 kB / 0.9863 GB, free: 440 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.8967, allocations: 0 / 0.9863 GB, free: 440 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.76e-05/0.8967, allocations: 8 kB / 0.9863 GB, free: 432 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.8968, allocations: 0 / 0.9863 GB, free: 432 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.054e-05/0.8968, allocations: 12 kB / 0.9863 GB, free: 420 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.348e-06/0.8968, allocations: 4 kB / 0.9863 GB, free: 416 kB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (3): * Single equations (assignments): 3 * 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 7.515e-05/0.8969, allocations: 115 kB / 0.9864 GB, free: 292 kB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.443e-05/0.8969, allocations: 7.906 kB / 0.9864 GB, free: 284 kB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001081/0.897, allocations: 117 kB / 0.9865 GB, free: 156 kB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.314e-05/0.8971, allocations: 180.2 kB / 0.9867 GB, free: 15.97 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.945e-05/0.8972, allocations: 188.3 kB / 0.9869 GB, free: 15.78 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-05/0.8973, allocations: 180.2 kB / 0.987 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002425/0.8975, allocations: 409.2 kB / 0.9874 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-05/0.8976, allocations: 101 kB / 0.9875 GB, free: 15.03 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.712e-05/0.8976, allocations: 108.9 kB / 0.9876 GB, free: 14.92 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-05/0.8977, allocations: 180.3 kB / 0.9878 GB, free: 14.73 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.572e-05/0.8977, allocations: 184.2 kB / 0.988 GB, free: 14.55 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.763e-05/0.8978, allocations: 184.2 kB / 0.9882 GB, free: 14.36 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.056e-05/0.8979, allocations: 188.5 kB / 0.9883 GB, free: 14.17 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001513/0.898, allocations: 299.8 kB / 0.9886 GB, free: 13.85 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 9.048e-05/0.8981, allocations: 198 kB / 0.9888 GB, free: 13.63 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.012e-05/0.8982, allocations: 176.3 kB / 0.989 GB, free: 13.45 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001611/0.8984, allocations: 108.9 kB / 0.9891 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.808e-05/0.8985, allocations: 184.2 kB / 0.9893 GB, free: 13.15 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.663e-05/0.8985, allocations: 101 kB / 0.9894 GB, free: 13.05 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 4.693e-05/0.8986, allocations: 87.28 kB / 0.9894 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8986, allocations: 0 / 0.9894 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002442/0.8988, allocations: 12 kB / 0.9895 GB, free: 12.95 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (0): * Single equations (assignments): 0 * 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.0004629/0.8993, allocations: 0.8243 MB / 0.9903 GB, free: 12.1 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 6.792e-05/0.8994, allocations: 12 kB / 0.9903 GB, free: 12.09 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.8994, allocations: 0 / 0.9903 GB, free: 12.09 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 3.446e-06/0.8994, allocations: 3.938 kB / 0.9903 GB, free: 12.08 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003762/0.8998, allocations: 0.5224 MB / 0.9908 GB, free: 11.55 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000402/0.9002, allocations: 221.6 kB / 0.991 GB, free: 11.3 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002717/0.9005, allocations: 0.6809 MB / 0.9917 GB, free: 10.59 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.001e-05/0.9005, allocations: 7.938 kB / 0.9917 GB, free: 10.58 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.14e-05/0.9005, allocations: 11.44 kB / 0.9917 GB, free: 10.57 MB / 0.7481 GB Notification: Performance of SimCode: time 2.41e-07/0.9005, allocations: 3.938 kB / 0.9917 GB, free: 10.57 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01006/0.9106, allocations: 1.205 MB / 0.9929 GB, free: 9.508 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001747/0.9108, allocations: 200.7 kB / 0.993 GB, free: 9.262 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.766/2.677, allocations: 0 / 0.993 GB, free: 9.262 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat does not exist to compare? outputFormat=mat