Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_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.005104/0.005104, allocations: 102.8 kB / 15.73 MB, free: 6.035 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.001241/0.001241, allocations: 198.5 kB / 16.68 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.273/1.273, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002101/0.002101, allocations: 289.4 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.918/0.918, allocations: 169.2 MB / 0.4983 GB, free: 4.406 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001743/0.001743, allocations: 87.86 kB / 0.6809 GB, free: 7.469 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3937/0.3954, allocations: 86.99 MB / 0.7659 GB, free: 3.973 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005346/0.4008, allocations: 4.009 MB / 0.7698 GB, free: 15.94 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0002036/0.401, allocations: 151.5 kB / 0.7699 GB, free: 15.79 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.046e-05/0.4011, allocations: 0 / 0.7699 GB, free: 15.79 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001099/0.4012, allocations: 7.922 kB / 0.77 GB, free: 15.79 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 8.141e-05/0.4013, allocations: 15.92 kB / 0.77 GB, free: 15.77 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003841/0.4017, allocations: 79.75 kB / 0.77 GB, free: 15.69 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 9.999e-05/0.4018, allocations: 35.84 kB / 0.7701 GB, free: 15.66 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.266e-05/0.4019, allocations: 3.984 kB / 0.7701 GB, free: 15.65 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 4.589e-05/0.4019, allocations: 15.94 kB / 0.7701 GB, free: 15.64 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 7.708e-05/0.402, allocations: 15.97 kB / 0.7701 GB, free: 15.62 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.209e-05/0.402, allocations: 0 / 0.7701 GB, free: 15.62 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002169/0.4022, allocations: 59.81 kB / 0.7702 GB, free: 15.56 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 4.861e-05/0.4023, allocations: 8 kB / 0.7702 GB, free: 15.55 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.566e-05/0.4023, allocations: 15.91 kB / 0.7702 GB, free: 15.54 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.000149/0.4025, allocations: 38.73 kB / 0.7702 GB, free: 15.5 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.4025, allocations: 0 / 0.7702 GB, free: 15.5 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.673e-06/0.4025, allocations: 4 kB / 0.7702 GB, free: 15.5 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.897e-06/0.4025, allocations: 0 / 0.7702 GB, free: 15.5 MB / 0.545 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.0004335/0.403, allocations: 339.4 kB / 0.7706 GB, free: 15.12 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.403, allocations: 11.97 kB / 0.7706 GB, free: 15.11 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.902e-05/0.4031, allocations: 34.69 kB / 0.7706 GB, free: 15.07 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.558e-05/0.4031, allocations: 8.938 kB / 0.7706 GB, free: 15.06 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001318/0.4032, allocations: 164.4 kB / 0.7708 GB, free: 14.86 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.697e-05/0.4033, allocations: 26.27 kB / 0.7708 GB, free: 14.83 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.477e-05/0.4033, allocations: 8.125 kB / 0.7708 GB, free: 14.82 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000147/0.4035, allocations: 49.67 kB / 0.7708 GB, free: 14.77 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.4035, allocations: 0 / 0.7708 GB, free: 14.77 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.4035, allocations: 0 / 0.7708 GB, free: 14.77 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.207e-05/0.4035, allocations: 0 / 0.7708 GB, free: 14.77 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.956e-05/0.4036, allocations: 19.92 kB / 0.7709 GB, free: 14.75 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004739/0.4041, allocations: 334 kB / 0.7712 GB, free: 14.35 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 5.705e-05/0.4042, allocations: 22.61 kB / 0.7712 GB, free: 14.32 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.535e-05/0.4042, allocations: 8.859 kB / 0.7712 GB, free: 14.31 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 8.976e-05/0.4043, allocations: 85.17 kB / 0.7713 GB, free: 14.21 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.424e-05/0.4043, allocations: 30.56 kB / 0.7713 GB, free: 14.17 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 1.133e-06/0.4043, allocations: 4 kB / 0.7713 GB, free: 14.16 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001592/0.4045, allocations: 45.53 kB / 0.7714 GB, free: 14.11 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.744e-05/0.4045, allocations: 51.41 kB / 0.7714 GB, free: 14.05 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.161e-05/0.4046, allocations: 101.8 kB / 0.7715 GB, free: 13.94 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.622e-05/0.4046, allocations: 25.7 kB / 0.7715 GB, free: 13.91 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.27e-05/0.4047, allocations: 92.12 kB / 0.7716 GB, free: 13.82 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.891e-06/0.4047, allocations: 3.906 kB / 0.7716 GB, free: 13.81 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.959e-05/0.4047, allocations: 13.72 kB / 0.7716 GB, free: 13.79 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.4048, allocations: 322.9 kB / 0.772 GB, free: 13.47 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.603e-05/0.4049, allocations: 7.984 kB / 0.772 GB, free: 13.46 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.17e-05/0.4049, allocations: 13.72 kB / 0.772 GB, free: 13.44 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.762e-05/0.4049, allocations: 21.66 kB / 0.772 GB, free: 13.41 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.4049, allocations: 0 / 0.772 GB, free: 13.41 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.316e-05/0.405, allocations: 53.69 kB / 0.772 GB, free: 13.36 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.405, allocations: 4 kB / 0.7721 GB, free: 13.35 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-06/0.4051, allocations: 0 / 0.7721 GB, free: 13.35 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.4051, allocations: 0 / 0.7721 GB, free: 13.35 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.269e-05/0.4051, allocations: 11.94 kB / 0.7721 GB, free: 13.34 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.4051, allocations: 3.984 kB / 0.7721 GB, free: 13.34 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.055e-05/0.4052, allocations: 3.938 kB / 0.7721 GB, free: 13.33 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.828e-06/0.4052, allocations: 3.938 kB / 0.7721 GB, free: 13.33 MB / 0.545 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.871e-05/0.4052, allocations: 120.1 kB / 0.7722 GB, free: 13.2 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.872e-05/0.4053, allocations: 7.969 kB / 0.7722 GB, free: 13.2 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001143/0.4054, allocations: 124.9 kB / 0.7723 GB, free: 13.06 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.279e-05/0.4055, allocations: 180.2 kB / 0.7725 GB, free: 12.88 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.708e-05/0.4055, allocations: 180.3 kB / 0.7727 GB, free: 12.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.716e-05/0.4056, allocations: 180.2 kB / 0.7728 GB, free: 12.51 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002385/0.4058, allocations: 413.2 kB / 0.7732 GB, free: 12.05 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.263e-05/0.4059, allocations: 101 kB / 0.7733 GB, free: 11.95 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.261e-05/0.4059, allocations: 108.9 kB / 0.7734 GB, free: 11.83 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.32e-05/0.406, allocations: 180.2 kB / 0.7736 GB, free: 11.65 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.871e-05/0.4061, allocations: 184.2 kB / 0.7738 GB, free: 11.46 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.169e-05/0.4061, allocations: 180.3 kB / 0.7739 GB, free: 11.28 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.278e-05/0.4062, allocations: 184.2 kB / 0.7741 GB, free: 11.09 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001342/0.4063, allocations: 303.8 kB / 0.7744 GB, free: 10.77 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 7.671e-05/0.4064, allocations: 186 kB / 0.7746 GB, free: 10.56 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.869e-05/0.4065, allocations: 180.3 kB / 0.7748 GB, free: 10.38 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001484/0.4067, allocations: 117 kB / 0.7749 GB, free: 10.26 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.594e-05/0.4067, allocations: 180.2 kB / 0.775 GB, free: 10.07 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.199e-05/0.4068, allocations: 101 kB / 0.7751 GB, free: 9.969 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.074e-05/0.4068, allocations: 83.28 kB / 0.7752 GB, free: 9.887 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4068, allocations: 0 / 0.7752 GB, free: 9.887 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002611/0.4071, allocations: 19.92 kB / 0.7752 GB, free: 9.867 MB / 0.545 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005968/0.4077, allocations: 0.8321 MB / 0.776 GB, free: 9.008 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 7.322e-05/0.4078, allocations: 4 kB / 0.7761 GB, free: 9.004 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4078, allocations: 0 / 0.7761 GB, free: 9.004 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 7.314e-06/0.4078, allocations: 7.938 kB / 0.7761 GB, free: 8.996 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003982/0.4082, allocations: 464.5 kB / 0.7765 GB, free: 8.539 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001017/0.4092, allocations: 1.324 MB / 0.7778 GB, free: 7.125 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000254/0.4095, allocations: 0.6768 MB / 0.7785 GB, free: 6.422 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 4.021e-05/0.4096, allocations: 8 kB / 0.7785 GB, free: 6.414 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.528e-05/0.4096, allocations: 11.44 kB / 0.7785 GB, free: 6.402 MB / 0.545 GB Notification: Performance of SimCode: time 2.61e-07/0.4096, allocations: 3.938 kB / 0.7785 GB, free: 6.398 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01762/0.4272, allocations: 1.535 MB / 0.78 GB, free: 5.008 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.031/7.458, allocations: 12.61 kB / 0.78 GB, free: 5.004 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)