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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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.7951/0.7951, allocations: 140.1 MB / 156 MB, free: 5.203 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009753/0.0009754, allocations: 174.1 kB / 188.5 MB, free: 15.86 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.432/1.432, allocations: 205.4 MB / 426.3 MB, free: 8.508 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007858/0.0007859, allocations: 104.7 kB / 0.4945 GB, free: 8.441 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001619/0.001619, allocations: 266.7 kB / 0.5728 GB, free: 66.26 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004377/0.0004378, allocations: 20 kB / 0.662 GB, free: 6.836 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3283/0.3288, allocations: 79.3 MB / 0.7395 GB, free: 46.38 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1216/0.4505, allocations: 108.1 MB / 0.845 GB, free: 2.172 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001996/0.4507, allocations: 75.95 kB / 0.8451 GB, free: 2.098 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.01254/0.4633, allocations: 4.541 MB / 0.8495 GB, free: 13.55 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.673e-06/0.4633, allocations: 0 / 0.8495 GB, free: 13.55 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.4633, allocations: 0 / 0.8495 GB, free: 13.55 MB / 0.5261 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.0003472/0.4637, allocations: 347.5 kB / 0.8498 GB, free: 13.16 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.4637, allocations: 8.031 kB / 0.8498 GB, free: 13.15 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.6e-05/0.4637, allocations: 8.844 kB / 0.8499 GB, free: 13.14 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001113/0.4639, allocations: 168.3 kB / 0.85 GB, free: 12.94 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.522e-05/0.4639, allocations: 8.375 kB / 0.85 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.11e-05/0.4639, allocations: 4.312 kB / 0.85 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001173/0.464, allocations: 54.19 kB / 0.8501 GB, free: 12.87 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.4641, allocations: 192 / 0.8501 GB, free: 12.87 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.4641, allocations: 3.938 kB / 0.8501 GB, free: 12.87 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.4641, allocations: 4 kB / 0.8501 GB, free: 12.86 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.815e-05/0.4641, allocations: 19.92 kB / 0.8501 GB, free: 12.84 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002009/0.4643, allocations: 161.7 kB / 0.8503 GB, free: 12.64 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001169/0.4645, allocations: 66.61 kB / 0.8503 GB, free: 12.56 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.742e-05/0.4645, allocations: 28.86 kB / 0.8504 GB, free: 12.53 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.223e-05/0.4646, allocations: 3.938 kB / 0.8504 GB, free: 12.53 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.372e-05/0.4646, allocations: 30.56 kB / 0.8504 GB, free: 12.49 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.4646, allocations: 0 / 0.8504 GB, free: 12.49 MB / 0.5261 GB Notification: Performance of matching and sorting (n=11): time 0.001206/0.4658, allocations: 0.5954 MB / 0.851 GB, free: 11.8 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.788e-05/0.4659, allocations: 55.41 kB / 0.851 GB, free: 11.73 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.291e-05/0.466, allocations: 97.84 kB / 0.8511 GB, free: 11.63 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.877e-05/0.466, allocations: 29.7 kB / 0.8511 GB, free: 11.59 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 3.425e-05/0.466, allocations: 80.14 kB / 0.8512 GB, free: 11.51 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 4.591e-05/0.4661, allocations: 39.58 kB / 0.8513 GB, free: 11.47 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.979e-06/0.4661, allocations: 4 kB / 0.8513 GB, free: 11.47 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.4662, allocations: 314.8 kB / 0.8516 GB, free: 11.15 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.352e-05/0.4663, allocations: 19.98 kB / 0.8516 GB, free: 11.13 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.701e-05/0.4663, allocations: 24.48 kB / 0.8516 GB, free: 11.11 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.21e-05/0.4664, allocations: 58.3 kB / 0.8517 GB, free: 11.05 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.4664, allocations: 4 kB / 0.8517 GB, free: 11.05 MB / 0.5261 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001386/0.4666, allocations: 95.38 kB / 0.8518 GB, free: 10.95 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.4666, allocations: 4 kB / 0.8518 GB, free: 10.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.4666, allocations: 3.984 kB / 0.8518 GB, free: 10.94 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.4666, allocations: 4 kB / 0.8518 GB, free: 10.94 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/0.4667, allocations: 20 kB / 0.8518 GB, free: 10.92 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.4667, allocations: 0 / 0.8518 GB, free: 10.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.533e-05/0.4668, allocations: 4 kB / 0.8518 GB, free: 10.91 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.073e-05/0.4668, allocations: 8 kB / 0.8518 GB, free: 10.91 MB / 0.5261 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 (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 7.921e-05/0.4669, allocations: 121.8 kB / 0.8519 GB, free: 10.78 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.351e-05/0.4669, allocations: 7.844 kB / 0.8519 GB, free: 10.77 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001949/0.4671, allocations: 105.6 kB / 0.852 GB, free: 10.66 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.4671, allocations: 4 kB / 0.852 GB, free: 10.66 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.4671, allocations: 0 / 0.852 GB, free: 10.66 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.4671, allocations: 3.984 kB / 0.852 GB, free: 10.65 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003911/0.4675, allocations: 354.6 kB / 0.8524 GB, free: 10.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.4675, allocations: 3.984 kB / 0.8524 GB, free: 10.25 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001125/0.4677, allocations: 19.98 kB / 0.8524 GB, free: 10.23 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.4677, allocations: 0 / 0.8524 GB, free: 10.23 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.071e-05/0.4677, allocations: 4 kB / 0.8524 GB, free: 10.22 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.4677, allocations: 0 / 0.8524 GB, free: 10.22 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.4677, allocations: 4 kB / 0.8524 GB, free: 10.22 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002403/0.4679, allocations: 223.3 kB / 0.8526 GB, free: 9.984 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 4.356e-05/0.468, allocations: 81.14 kB / 0.8527 GB, free: 9.887 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.609e-05/0.468, allocations: 4 kB / 0.8527 GB, free: 9.883 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.431e-05/0.4681, allocations: 0 / 0.8527 GB, free: 9.883 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.284e-05/0.4681, allocations: 11.92 kB / 0.8527 GB, free: 9.871 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.316e-06/0.4681, allocations: 4 kB / 0.8527 GB, free: 9.867 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 3.722e-05/0.4682, allocations: 83.34 kB / 0.8528 GB, free: 9.785 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4682, allocations: 0 / 0.8528 GB, free: 9.785 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002875/0.4685, allocations: 47.92 kB / 0.8528 GB, free: 9.738 MB / 0.5261 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 () * Number of clocked 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.0002177/0.4687, allocations: 135.2 kB / 0.853 GB, free: 9.594 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001471/0.4689, allocations: 67.84 kB / 0.853 GB, free: 9.527 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.4689, allocations: 0 / 0.853 GB, free: 9.527 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 6.8e-05/0.469, allocations: 35.92 kB / 0.8531 GB, free: 9.492 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002121/0.4692, allocations: 8.609 kB / 0.8531 GB, free: 9.484 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005612/0.4697, allocations: 340.2 kB / 0.8534 GB, free: 9.125 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002649/0.47, allocations: 0.6887 MB / 0.8541 GB, free: 8.41 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 4.927e-05/0.4701, allocations: 11.94 kB / 0.8541 GB, free: 8.398 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.74e-05/0.4701, allocations: 15.44 kB / 0.8541 GB, free: 8.383 MB / 0.5261 GB Notification: Performance of SimCode: time 2.2e-07/0.4701, allocations: 4 kB / 0.8541 GB, free: 8.379 MB / 0.5261 GB Notification: Performance of Templates: time 0.003077/0.4732, allocations: 0.9065 MB / 0.855 GB, free: 7.488 MB / 0.5261 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)