Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.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_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8583/0.8583, allocations: 141.7 MB / 154.3 MB, free: 15.49 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.001106/0.001106, allocations: 179.7 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.459/1.459, allocations: 221.3 MB / 441.4 MB, free: 4.641 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.0009196/0.0009199, allocations: 95.8 kB / 0.5124 GB, free: 24.18 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001842/0.001842, allocations: 268 kB / 0.5939 GB, free: 7.957 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.988e-05/3.99e-05, allocations: 4 kB / 0.6834 GB, free: 12.24 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4862/0.4863, allocations: 82.77 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1318/0.6181, allocations: 109.5 MB / 0.8712 GB, free: 15.01 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002236/0.6184, allocations: 84.64 kB / 0.8713 GB, free: 14.93 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01333/0.6317, allocations: 4.56 MB / 0.8758 GB, free: 10.38 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.014e-06/0.6318, allocations: 0 / 0.8758 GB, free: 10.38 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 8.947e-06/0.6318, allocations: 4 kB / 0.8758 GB, free: 10.37 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004312/0.6322, allocations: 338.5 kB / 0.8761 GB, free: 9.996 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.236e-05/0.6323, allocations: 12.03 kB / 0.8761 GB, free: 9.984 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.602e-05/0.6324, allocations: 0 / 0.8761 GB, free: 9.984 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001697/0.6325, allocations: 178.9 kB / 0.8763 GB, free: 9.77 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.6326, allocations: 4 kB / 0.8763 GB, free: 9.766 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.533e-05/0.6326, allocations: 11.91 kB / 0.8763 GB, free: 9.754 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001551/0.6328, allocations: 45.69 kB / 0.8763 GB, free: 9.703 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.6328, allocations: 0 / 0.8763 GB, free: 9.703 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.712e-05/0.6328, allocations: 4 kB / 0.8763 GB, free: 9.699 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.6328, allocations: 0 / 0.8763 GB, free: 9.699 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.488e-05/0.6329, allocations: 15.98 kB / 0.8764 GB, free: 9.684 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002375/0.6331, allocations: 165.7 kB / 0.8765 GB, free: 9.473 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001285/0.6333, allocations: 66.47 kB / 0.8766 GB, free: 9.398 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.102e-05/0.6333, allocations: 32.78 kB / 0.8766 GB, free: 9.363 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.885e-05/0.6334, allocations: 7.938 kB / 0.8766 GB, free: 9.355 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.119e-05/0.6334, allocations: 30.56 kB / 0.8767 GB, free: 9.316 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=7): time 1.422e-06/0.6334, allocations: 0 / 0.8767 GB, free: 9.316 MB / 0.5417 GB Notification: Performance of matching and sorting (n=11): time 0.001136/0.6346, allocations: 0.558 MB / 0.8772 GB, free: 8.672 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.597e-05/0.6346, allocations: 51.41 kB / 0.8772 GB, free: 8.609 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.983e-05/0.6347, allocations: 89 kB / 0.8773 GB, free: 8.516 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.169e-05/0.6348, allocations: 29.7 kB / 0.8774 GB, free: 8.48 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.218e-05/0.6348, allocations: 80.14 kB / 0.8774 GB, free: 8.398 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 5.525e-05/0.6349, allocations: 43.33 kB / 0.8775 GB, free: 8.355 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.693e-06/0.6349, allocations: 4 kB / 0.8775 GB, free: 8.352 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001562/0.635, allocations: 319 kB / 0.8778 GB, free: 8.031 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.838e-05/0.6351, allocations: 23.98 kB / 0.8778 GB, free: 8.008 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.173e-05/0.6352, allocations: 20 kB / 0.8778 GB, free: 7.988 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.762e-05/0.6352, allocations: 27.89 kB / 0.8779 GB, free: 7.961 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.41e-07/0.6353, allocations: 0 / 0.8779 GB, free: 7.961 MB / 0.5417 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001628/0.6354, allocations: 103.7 kB / 0.878 GB, free: 7.855 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.6355, allocations: 4 kB / 0.878 GB, free: 7.852 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.6355, allocations: 0 / 0.878 GB, free: 7.852 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.6355, allocations: 0 / 0.878 GB, free: 7.852 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001263/0.6356, allocations: 27.98 kB / 0.878 GB, free: 7.824 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.6356, allocations: 4 kB / 0.878 GB, free: 7.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.423e-05/0.6357, allocations: 0 / 0.878 GB, free: 7.82 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.074e-05/0.6357, allocations: 4 kB / 0.878 GB, free: 7.816 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 (13): * Single equations (assignments): 13 * 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 9.968e-05/0.6358, allocations: 112.9 kB / 0.8781 GB, free: 7.699 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.008e-05/0.6358, allocations: 11.89 kB / 0.8781 GB, free: 7.688 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002322/0.6361, allocations: 97.77 kB / 0.8782 GB, free: 7.59 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.195e-06/0.6361, allocations: 3.938 kB / 0.8782 GB, free: 7.586 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.6361, allocations: 0 / 0.8782 GB, free: 7.586 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.6361, allocations: 7.984 kB / 0.8782 GB, free: 7.578 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005216/0.6366, allocations: 354.5 kB / 0.8786 GB, free: 7.176 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.6366, allocations: 3.938 kB / 0.8786 GB, free: 7.172 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001141/0.6368, allocations: 20 kB / 0.8786 GB, free: 7.152 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.043e-06/0.6368, allocations: 0 / 0.8786 GB, free: 7.152 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.6368, allocations: 0 / 0.8786 GB, free: 7.152 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.6368, allocations: 0 / 0.8786 GB, free: 7.152 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.6368, allocations: 0 / 0.8786 GB, free: 7.152 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003304/0.6371, allocations: 227.5 kB / 0.8788 GB, free: 6.914 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 6.384e-05/0.6372, allocations: 85.12 kB / 0.8789 GB, free: 6.812 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.014e-05/0.6372, allocations: 4 kB / 0.8789 GB, free: 6.809 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.1e-05/0.6373, allocations: 4 kB / 0.8789 GB, free: 6.805 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.342e-05/0.6374, allocations: 4 kB / 0.8789 GB, free: 6.801 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.049e-05/0.6374, allocations: 7.984 kB / 0.8789 GB, free: 6.793 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 5.53e-05/0.6374, allocations: 79.28 kB / 0.879 GB, free: 6.715 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6374, allocations: 160 / 0.879 GB, free: 6.715 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003409/0.6378, allocations: 47.94 kB / 0.879 GB, free: 6.668 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_m_flow_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0003309/0.6381, allocations: 139.1 kB / 0.8791 GB, free: 6.52 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001815/0.6383, allocations: 59.94 kB / 0.8792 GB, free: 6.461 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.6383, allocations: 0 / 0.8792 GB, free: 6.461 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 5.701e-05/0.6384, allocations: 31.94 kB / 0.8792 GB, free: 6.43 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001789/0.6386, allocations: 12.95 kB / 0.8792 GB, free: 6.418 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006442/0.6392, allocations: 217.5 kB / 0.8795 GB, free: 6.18 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004265/0.6397, allocations: 0.6887 MB / 0.8801 GB, free: 5.465 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 6.023e-05/0.6397, allocations: 23.86 kB / 0.8801 GB, free: 5.441 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.986e-05/0.6398, allocations: 11.44 kB / 0.8802 GB, free: 5.43 MB / 0.5417 GB Notification: Performance of SimCode: time 2.31e-07/0.6398, allocations: 0 / 0.8802 GB, free: 5.43 MB / 0.5417 GB Notification: Performance of Templates: time 0.003737/0.6435, allocations: 0.8577 MB / 0.881 GB, free: 4.605 MB / 0.5417 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)