Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9478/0.9478, allocations: 143.4 MB / 158.3 MB, free: 5.805 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001168/0.001168, allocations: 177 kB / 191.5 MB, free: 5.762 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.499/1.499, allocations: 223.2 MB / 447.7 MB, free: 4.797 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008967/0.0008966, allocations: 96.31 kB / 0.5187 GB, free: 1.16 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001726/0.001726, allocations: 264.4 kB / 0.6005 GB, free: 48.77 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004284/0.0004285, allocations: 14.03 kB / 0.6929 GB, free: 59.53 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1806/0.181, allocations: 82.79 MB / 0.7738 GB, free: 13.76 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.645/0.8261, allocations: 110.4 MB / 0.8816 GB, free: 31.83 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000283/0.8264, allocations: 84.98 kB / 0.8817 GB, free: 31.83 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01595/0.8424, allocations: 5.405 MB / 0.8869 GB, free: 31.25 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.154e-06/0.8425, allocations: 0 / 0.8869 GB, free: 31.25 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 8.145e-06/0.8425, allocations: 0 / 0.8869 GB, free: 31.25 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004021/0.8429, allocations: 371 kB / 0.8873 GB, free: 30.87 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.8429, allocations: 8.812 kB / 0.8873 GB, free: 30.87 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.133e-05/0.843, allocations: 35.34 kB / 0.8873 GB, free: 30.83 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.752e-05/0.843, allocations: 3.688 kB / 0.8873 GB, free: 30.83 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.976e-05/0.8431, allocations: 165.2 kB / 0.8875 GB, free: 30.63 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.347e-05/0.8431, allocations: 6.531 kB / 0.8875 GB, free: 30.63 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.766e-06/0.8431, allocations: 0 / 0.8875 GB, free: 30.63 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001147/0.8433, allocations: 42.14 kB / 0.8875 GB, free: 30.59 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.8433, allocations: 0 / 0.8875 GB, free: 30.59 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.548e-06/0.8433, allocations: 7.922 kB / 0.8875 GB, free: 30.59 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.8433, allocations: 0 / 0.8875 GB, free: 30.59 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.765e-05/0.8434, allocations: 14.31 kB / 0.8876 GB, free: 30.59 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003554/0.8437, allocations: 259.6 kB / 0.8878 GB, free: 30.32 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002161/0.844, allocations: 51.11 kB / 0.8879 GB, free: 30.29 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.183e-05/0.844, allocations: 0 / 0.8879 GB, free: 30.29 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.106e-05/0.844, allocations: 35.41 kB / 0.8879 GB, free: 30.25 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=4): time 8.02e-07/0.844, allocations: 0 / 0.8879 GB, free: 30.25 MB / 0.5417 GB Notification: Performance of matching and sorting (n=4): time 0.0001931/0.8442, allocations: 57.64 kB / 0.8879 GB, free: 30.21 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.044e-05/0.8443, allocations: 52.06 kB / 0.888 GB, free: 30.15 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.318e-05/0.8443, allocations: 89.27 kB / 0.8881 GB, free: 30.06 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.225e-05/0.8443, allocations: 26.45 kB / 0.8881 GB, free: 30.03 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 3.844e-05/0.8444, allocations: 87.8 kB / 0.8882 GB, free: 29.95 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.253e-05/0.8444, allocations: 11.95 kB / 0.8882 GB, free: 29.94 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.306e-06/0.8444, allocations: 4 kB / 0.8882 GB, free: 29.93 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 6.553e-05/0.8445, allocations: 320 kB / 0.8885 GB, free: 29.62 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.022e-05/0.8445, allocations: 11.05 kB / 0.8885 GB, free: 29.61 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.43e-05/0.8446, allocations: 21.02 kB / 0.8885 GB, free: 29.6 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.821e-05/0.8446, allocations: 9.109 kB / 0.8886 GB, free: 29.6 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.8446, allocations: 0 / 0.8886 GB, free: 29.6 MB / 0.5417 GB Notification: Performance of matching and sorting (n=5) (initialization): time 9.045e-05/0.8447, allocations: 61.52 kB / 0.8886 GB, free: 29.56 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.8447, allocations: 7.5 kB / 0.8886 GB, free: 29.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.8447, allocations: 0.9844 kB / 0.8886 GB, free: 29.55 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.8448, allocations: 3.5 kB / 0.8886 GB, free: 29.55 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.622e-05/0.8448, allocations: 7.125 kB / 0.8886 GB, free: 29.55 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.8448, allocations: 0 / 0.8886 GB, free: 29.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.845e-05/0.8449, allocations: 5.672 kB / 0.8886 GB, free: 29.55 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.044e-06/0.8449, allocations: 1.062 kB / 0.8886 GB, free: 29.55 MB / 0.5417 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 (5): * Single equations (assignments): 5 * 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 6.232e-05/0.8449, allocations: 117 kB / 0.8887 GB, free: 29.43 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.408e-05/0.845, allocations: 5.062 kB / 0.8888 GB, free: 29.43 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001455/0.8451, allocations: 69.41 kB / 0.8888 GB, free: 29.38 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.8451, allocations: 5.344 kB / 0.8888 GB, free: 29.38 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.8451, allocations: 1.078 kB / 0.8888 GB, free: 29.38 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.8451, allocations: 0 / 0.8888 GB, free: 29.38 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001432/0.8453, allocations: 163.3 kB / 0.889 GB, free: 29.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.8453, allocations: 128 / 0.889 GB, free: 29.18 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.621e-05/0.8453, allocations: 10.75 kB / 0.889 GB, free: 29.18 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.8454, allocations: 0 / 0.889 GB, free: 29.18 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.002e-06/0.8454, allocations: 1.281 kB / 0.889 GB, free: 29.18 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.8454, allocations: 4.797 kB / 0.889 GB, free: 29.18 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.8454, allocations: 0.7188 kB / 0.889 GB, free: 29.18 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001337/0.8455, allocations: 150.4 kB / 0.8891 GB, free: 29.04 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 2.51e-05/0.8456, allocations: 79.05 kB / 0.8892 GB, free: 28.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.406e-05/0.8456, allocations: 1.516 kB / 0.8892 GB, free: 28.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.948e-05/0.8456, allocations: 4.547 kB / 0.8892 GB, free: 28.94 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.754e-05/0.8457, allocations: 9.938 kB / 0.8892 GB, free: 28.94 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.899e-06/0.8457, allocations: 2.219 kB / 0.8892 GB, free: 28.94 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 2.285e-05/0.8457, allocations: 84.84 kB / 0.8893 GB, free: 28.86 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8457, allocations: 0 / 0.8893 GB, free: 28.86 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002721/0.846, allocations: 20.67 kB / 0.8893 GB, free: 28.86 MB / 0.5417 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 (4): * Single equations (assignments): 4 * 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.0003829/0.8464, allocations: 0.7048 MB / 0.89 GB, free: 28.19 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 9.715e-05/0.8465, allocations: 31.53 kB / 0.8901 GB, free: 28.18 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.8465, allocations: 0 / 0.8901 GB, free: 28.18 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 1.833e-05/0.8465, allocations: 11.7 kB / 0.8901 GB, free: 28.18 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00014/0.8467, allocations: 3.5 kB / 0.8901 GB, free: 28.18 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000449/0.8471, allocations: 176.8 kB / 0.8902 GB, free: 28.02 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001546/0.8487, allocations: 0.6798 MB / 0.8909 GB, free: 43.32 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 4.313e-05/0.8487, allocations: 8.984 kB / 0.8909 GB, free: 43.32 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.452e-05/0.8488, allocations: 8.234 kB / 0.8909 GB, free: 43.31 MB / 0.5573 GB Notification: Performance of SimCode: time 4e-07/0.8488, allocations: 0 / 0.8909 GB, free: 43.31 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01347/0.8622, allocations: 1.197 MB / 0.8921 GB, free: 43.17 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000176/0.8625, allocations: 206.3 kB / 0.8923 GB, free: 42.93 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.565/2.427, allocations: 4 kB / 0.8923 GB, free: 42.93 MB / 0.5573 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe 2>&1)