Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.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.InvertingBasicFlowFunction_m_flow,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",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.8917/0.8917, allocations: 143.4 MB / 158.3 MB, free: 5.793 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.00106/0.00106, allocations: 181 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.498/1.498, allocations: 223.2 MB / 447.7 MB, free: 6.566 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.0009135/0.0009134, allocations: 96.2 kB / 0.5188 GB, free: 2.918 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001807/0.001807, allocations: 278.2 kB / 0.6005 GB, free: 48.99 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000463/0.0004631, allocations: 16 kB / 0.6929 GB, free: 2.227 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4137/0.4141, allocations: 82.78 MB / 0.7738 GB, free: 26.1 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1507/0.5649, allocations: 109.1 MB / 0.8803 GB, free: 12.86 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003025/0.5653, allocations: 83.94 kB / 0.8804 GB, free: 12.78 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.007134/0.5724, allocations: 2.299 MB / 0.8827 GB, free: 10.48 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.827e-06/0.5725, allocations: 0 / 0.8827 GB, free: 10.48 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.372e-06/0.5725, allocations: 7.938 kB / 0.8827 GB, free: 10.48 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003377/0.5728, allocations: 343.4 kB / 0.883 GB, free: 10.09 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.5729, allocations: 8.031 kB / 0.883 GB, free: 10.09 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.936e-05/0.5729, allocations: 34.5 kB / 0.883 GB, free: 10.04 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.131e-05/0.5729, allocations: 0 / 0.883 GB, free: 10.04 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001299/0.5731, allocations: 174.9 kB / 0.8832 GB, free: 9.832 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.064e-05/0.5731, allocations: 4 kB / 0.8832 GB, free: 9.828 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.275e-06/0.5731, allocations: 0 / 0.8832 GB, free: 9.828 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.105e-05/0.5732, allocations: 37.7 kB / 0.8832 GB, free: 9.785 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.142e-06/0.5732, allocations: 0 / 0.8832 GB, free: 9.785 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.595e-06/0.5732, allocations: 0 / 0.8832 GB, free: 9.785 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.5732, allocations: 0 / 0.8832 GB, free: 9.785 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.765e-05/0.5733, allocations: 4 kB / 0.8832 GB, free: 9.781 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001595/0.5734, allocations: 153.6 kB / 0.8834 GB, free: 9.582 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 5.512e-05/0.5735, allocations: 26.55 kB / 0.8834 GB, free: 9.547 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.877e-05/0.5735, allocations: 0 / 0.8834 GB, free: 9.547 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.581e-05/0.5736, allocations: 34.56 kB / 0.8834 GB, free: 9.504 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.5736, allocations: 0 / 0.8834 GB, free: 9.504 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2): time 0.0001325/0.5737, allocations: 41.75 kB / 0.8835 GB, free: 9.457 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.991e-05/0.5738, allocations: 63.28 kB / 0.8835 GB, free: 9.383 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.944e-05/0.5738, allocations: 85 kB / 0.8836 GB, free: 9.293 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.647e-05/0.5739, allocations: 25.7 kB / 0.8837 GB, free: 9.262 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.614e-05/0.5739, allocations: 84.39 kB / 0.8837 GB, free: 9.176 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.528e-05/0.5739, allocations: 15.89 kB / 0.8837 GB, free: 9.16 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.394e-06/0.5739, allocations: 0 / 0.8837 GB, free: 9.16 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001255/0.5741, allocations: 310.8 kB / 0.884 GB, free: 8.848 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.048e-05/0.5741, allocations: 3.938 kB / 0.884 GB, free: 8.844 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.512e-06/0.5741, allocations: 4 kB / 0.8841 GB, free: 8.84 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.766e-05/0.5741, allocations: 8 kB / 0.8841 GB, free: 8.832 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.5741, allocations: 0 / 0.8841 GB, free: 8.832 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.7e-05/0.5742, allocations: 45.55 kB / 0.8841 GB, free: 8.781 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.5742, allocations: 8.094 kB / 0.8841 GB, free: 8.773 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.5742, allocations: 0 / 0.8841 GB, free: 8.773 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.5743, allocations: 0 / 0.8841 GB, free: 8.773 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001647/0.5744, allocations: 8 kB / 0.8841 GB, free: 8.766 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004218/0.5749, allocations: 0.586 MB / 0.8847 GB, free: 8.156 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.19e-05/0.5749, allocations: 4.031 kB / 0.8847 GB, free: 8.152 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.071e-06/0.5749, allocations: 0 / 0.8847 GB, free: 8.152 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 8.907e-05/0.575, allocations: 118.4 kB / 0.8848 GB, free: 8.027 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.103e-06/0.575, allocations: 0 / 0.8848 GB, free: 8.027 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001202/0.5751, allocations: 48.75 kB / 0.8849 GB, free: 7.973 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.858e-06/0.5751, allocations: 4 kB / 0.8849 GB, free: 7.969 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.5752, allocations: 0 / 0.8849 GB, free: 7.969 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.5752, allocations: 0 / 0.8849 GB, free: 7.969 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000104/0.5753, allocations: 145.6 kB / 0.885 GB, free: 7.777 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.5753, allocations: 7.984 kB / 0.885 GB, free: 7.77 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.315e-05/0.5754, allocations: 8.031 kB / 0.885 GB, free: 7.762 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.5754, allocations: 4 kB / 0.885 GB, free: 7.758 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-06/0.5754, allocations: 0 / 0.885 GB, free: 7.758 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003532/0.5757, allocations: 0.586 MB / 0.8856 GB, free: 7.148 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.5758, allocations: 0 / 0.8856 GB, free: 7.148 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.527e-05/0.5758, allocations: 80.48 kB / 0.8857 GB, free: 7.055 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.363e-05/0.5759, allocations: 81.11 kB / 0.8857 GB, free: 6.957 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.233e-05/0.5759, allocations: 0 / 0.8857 GB, free: 6.957 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.387e-05/0.5759, allocations: 0 / 0.8857 GB, free: 6.957 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.533e-05/0.576, allocations: 3.984 kB / 0.8857 GB, free: 6.953 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-06/0.576, allocations: 3.938 kB / 0.8857 GB, free: 6.949 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 4.037e-05/0.576, allocations: 79.28 kB / 0.8858 GB, free: 6.871 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.9e-07/0.576, allocations: 0 / 0.8858 GB, free: 6.871 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.000208/0.5762, allocations: 11.95 kB / 0.8858 GB, free: 6.859 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 (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004555/0.5767, allocations: 0.6203 MB / 0.8864 GB, free: 6.211 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001423/0.5768, allocations: 15.94 kB / 0.8865 GB, free: 6.195 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.5769, allocations: 0 / 0.8865 GB, free: 6.195 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 8.009e-05/0.5769, allocations: 20.08 kB / 0.8865 GB, free: 6.176 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.685e-05/0.5771, allocations: 0 / 0.8865 GB, free: 6.176 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004379/0.5775, allocations: 141.1 kB / 0.8866 GB, free: 5.996 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002663/0.5778, allocations: 0.6731 MB / 0.8873 GB, free: 5.297 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 1.902e-05/0.5778, allocations: 7.984 kB / 0.8873 GB, free: 5.289 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.687e-05/0.5778, allocations: 11.5 kB / 0.8873 GB, free: 5.277 MB / 0.5417 GB Notification: Performance of SimCode: time 2.41e-07/0.5778, allocations: 3.938 kB / 0.8873 GB, free: 5.273 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0137/0.5916, allocations: 1.159 MB / 0.8884 GB, free: 4.371 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002368/0.5918, allocations: 254.3 kB / 0.8887 GB, free: 4.043 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.494/2.085, allocations: 3.938 kB / 0.8887 GB, free: 4.039 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1)