Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.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: translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9363/0.9363, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 177.2 kB / 187.3 MB, free: 11.89 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.463/1.463, allocations: 221.3 MB / 441.4 MB, free: 4.605 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.0009293/0.0009293, allocations: 94.81 kB / 0.5124 GB, free: 24.23 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001857/0.001857, allocations: 276.5 kB / 0.5939 GB, free: 7.949 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.068e-05/4.07e-05, allocations: 4 kB / 0.6834 GB, free: 12.23 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4964/0.4964, allocations: 82.77 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1341/0.6306, allocations: 109.3 MB / 0.871 GB, free: 15.27 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002336/0.6309, allocations: 83.81 kB / 0.8711 GB, free: 15.19 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.008206/0.6391, allocations: 2.874 MB / 0.8739 GB, free: 12.31 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.563e-06/0.6392, allocations: 4 kB / 0.8739 GB, free: 12.31 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.484e-06/0.6392, allocations: 0 / 0.8739 GB, free: 12.31 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003302/0.6395, allocations: 338.4 kB / 0.8742 GB, free: 11.93 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.41e-05/0.6396, allocations: 8.031 kB / 0.8742 GB, free: 11.93 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.787e-05/0.6396, allocations: 4 kB / 0.8742 GB, free: 11.92 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000143/0.6398, allocations: 163 kB / 0.8744 GB, free: 11.72 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.6398, allocations: 4 kB / 0.8744 GB, free: 11.72 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.37e-05/0.6398, allocations: 4 kB / 0.8744 GB, free: 11.71 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000123/0.64, allocations: 45.69 kB / 0.8744 GB, free: 11.66 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.64, allocations: 3.938 kB / 0.8744 GB, free: 11.66 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.64, allocations: 0 / 0.8744 GB, free: 11.66 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.64, allocations: 0 / 0.8744 GB, free: 11.66 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.258e-05/0.6401, allocations: 8 kB / 0.8744 GB, free: 11.65 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001959/0.6403, allocations: 165.5 kB / 0.8746 GB, free: 11.44 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001852/0.6405, allocations: 42.61 kB / 0.8746 GB, free: 11.39 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.826e-05/0.6405, allocations: 24.78 kB / 0.8747 GB, free: 11.36 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.288e-05/0.6405, allocations: 4 kB / 0.8747 GB, free: 11.36 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.741e-05/0.6406, allocations: 34.5 kB / 0.8747 GB, free: 11.32 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.6406, allocations: 0 / 0.8747 GB, free: 11.32 MB / 0.5417 GB Notification: Performance of matching and sorting (n=6): time 0.0006741/0.6413, allocations: 302.2 kB / 0.875 GB, free: 10.97 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.229e-05/0.6413, allocations: 55.41 kB / 0.875 GB, free: 10.9 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.276e-05/0.6414, allocations: 93 kB / 0.8751 GB, free: 10.8 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.151e-05/0.6414, allocations: 29.7 kB / 0.8752 GB, free: 10.77 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 3.935e-05/0.6415, allocations: 84.12 kB / 0.8752 GB, free: 10.68 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.535e-05/0.6415, allocations: 23.7 kB / 0.8753 GB, free: 10.66 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.927e-06/0.6415, allocations: 0 / 0.8753 GB, free: 10.66 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001262/0.6416, allocations: 314.8 kB / 0.8756 GB, free: 10.34 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.322e-05/0.6417, allocations: 8 kB / 0.8756 GB, free: 10.34 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.268e-05/0.6417, allocations: 14.42 kB / 0.8756 GB, free: 10.32 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.095e-05/0.6417, allocations: 11.98 kB / 0.8756 GB, free: 10.31 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.6417, allocations: 3.953 kB / 0.8756 GB, free: 10.31 MB / 0.5417 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.583e-05/0.6419, allocations: 69.62 kB / 0.8757 GB, free: 10.23 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.6419, allocations: 9.25 kB / 0.8757 GB, free: 10.23 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.6419, allocations: 0 / 0.8757 GB, free: 10.23 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.6419, allocations: 0 / 0.8757 GB, free: 10.23 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.868e-05/0.642, allocations: 8 kB / 0.8757 GB, free: 10.22 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.642, allocations: 0 / 0.8757 GB, free: 10.22 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.932e-05/0.642, allocations: 4 kB / 0.8757 GB, free: 10.21 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.272e-06/0.642, allocations: 0 / 0.8757 GB, free: 10.21 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.506e-05/0.6421, allocations: 105 kB / 0.8758 GB, free: 10.11 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.338e-05/0.6421, allocations: 15.94 kB / 0.8758 GB, free: 10.09 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001617/0.6423, allocations: 73.66 kB / 0.8759 GB, free: 10.02 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.6423, allocations: 4 kB / 0.8759 GB, free: 10.01 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.6423, allocations: 0 / 0.8759 GB, free: 10.01 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.6423, allocations: 0 / 0.8759 GB, free: 10.01 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003527/0.6427, allocations: 319.5 kB / 0.8762 GB, free: 9.641 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.6427, allocations: 4 kB / 0.8762 GB, free: 9.637 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-05/0.6428, allocations: 15.98 kB / 0.8762 GB, free: 9.621 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.6428, allocations: 0 / 0.8762 GB, free: 9.621 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.275e-06/0.6428, allocations: 4.031 kB / 0.8762 GB, free: 9.617 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.367e-06/0.6428, allocations: 0 / 0.8762 GB, free: 9.617 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.6428, allocations: 7.938 kB / 0.8762 GB, free: 9.609 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002063/0.643, allocations: 182.1 kB / 0.8764 GB, free: 9.406 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.591e-05/0.6431, allocations: 85.12 kB / 0.8765 GB, free: 9.305 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.421e-05/0.6431, allocations: 0 / 0.8765 GB, free: 9.305 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.55e-05/0.6432, allocations: 16 kB / 0.8765 GB, free: 9.289 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.835e-05/0.6432, allocations: 3.984 kB / 0.8765 GB, free: 9.285 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.503e-06/0.6432, allocations: 4 kB / 0.8765 GB, free: 9.281 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 3.753e-05/0.6432, allocations: 75.66 kB / 0.8766 GB, free: 9.207 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6433, allocations: 0 / 0.8766 GB, free: 9.207 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002469/0.6435, allocations: 35.94 kB / 0.8766 GB, free: 9.172 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (dp_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0002299/0.6437, allocations: 119.2 kB / 0.8767 GB, free: 9.043 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001098/0.6439, allocations: 43.92 kB / 0.8767 GB, free: 9 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.6439, allocations: 0 / 0.8767 GB, free: 9 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 2.598e-05/0.6439, allocations: 16 kB / 0.8768 GB, free: 8.984 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001441/0.6441, allocations: 4.969 kB / 0.8768 GB, free: 8.98 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003345/0.6444, allocations: 154.4 kB / 0.8769 GB, free: 8.809 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002837/0.6447, allocations: 0.6887 MB / 0.8776 GB, free: 8.094 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.824e-05/0.6447, allocations: 8 kB / 0.8776 GB, free: 8.086 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.022e-05/0.6448, allocations: 11.38 kB / 0.8776 GB, free: 8.074 MB / 0.5417 GB Notification: Performance of SimCode: time 2.6e-07/0.6448, allocations: 0 / 0.8776 GB, free: 8.074 MB / 0.5417 GB Notification: Performance of Templates: time 0.002732/0.6475, allocations: 0.6 MB / 0.8782 GB, free: 7.52 MB / 0.5417 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)