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 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_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.7376/0.7376, allocations: 140 MB / 156 MB, free: 8.383 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.0009673/0.0009673, allocations: 184.6 kB / 188.5 MB, free: 8.973 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.399/1.399, allocations: 205.4 MB / 426.4 MB, free: 8.023 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.0007869/0.0007869, allocations: 86.36 kB / 0.4945 GB, free: 7.965 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.0016/0.0016, allocations: 266.8 kB / 0.5728 GB, free: 66.1 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000469/0.0004691, allocations: 20 kB / 0.662 GB, free: 6.676 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3203/0.3208, allocations: 79.29 MB / 0.7395 GB, free: 46.28 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1212/0.442, allocations: 107.8 MB / 0.8448 GB, free: 2.32 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002035/0.4422, allocations: 83.95 kB / 0.8448 GB, free: 2.238 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.008308/0.4506, allocations: 2.851 MB / 0.8476 GB, free: 15.38 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.804e-06/0.4506, allocations: 0 / 0.8476 GB, free: 15.38 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.731e-06/0.4506, allocations: 0 / 0.8476 GB, free: 15.38 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003318/0.451, allocations: 351.5 kB / 0.848 GB, free: 14.99 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.451, allocations: 8.031 kB / 0.848 GB, free: 14.98 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.403e-05/0.451, allocations: 4.844 kB / 0.848 GB, free: 14.98 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001168/0.4512, allocations: 164.4 kB / 0.8481 GB, free: 14.78 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.708e-06/0.4512, allocations: 384 / 0.8481 GB, free: 14.78 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.227e-05/0.4512, allocations: 8.375 kB / 0.8481 GB, free: 14.77 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001028/0.4513, allocations: 42.19 kB / 0.8482 GB, free: 14.72 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.4513, allocations: 192 / 0.8482 GB, free: 14.72 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.499e-05/0.4514, allocations: 11.86 kB / 0.8482 GB, free: 14.71 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.4514, allocations: 0 / 0.8482 GB, free: 14.71 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.164e-05/0.4514, allocations: 15.98 kB / 0.8482 GB, free: 14.7 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001808/0.4516, allocations: 153.7 kB / 0.8483 GB, free: 14.5 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000194/0.4518, allocations: 46.56 kB / 0.8484 GB, free: 14.44 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.411e-05/0.4519, allocations: 12.86 kB / 0.8484 GB, free: 14.43 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.366e-05/0.4519, allocations: 4 kB / 0.8484 GB, free: 14.42 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/0.452, allocations: 38.5 kB / 0.8484 GB, free: 14.38 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=4): time 1.463e-06/0.452, allocations: 0 / 0.8484 GB, free: 14.38 MB / 0.5261 GB Notification: Performance of matching and sorting (n=6): time 0.0006668/0.4526, allocations: 318.2 kB / 0.8487 GB, free: 14.01 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.901e-05/0.4527, allocations: 51.41 kB / 0.8488 GB, free: 13.95 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.376e-05/0.4528, allocations: 101.9 kB / 0.8489 GB, free: 13.84 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.423e-05/0.4528, allocations: 25.7 kB / 0.8489 GB, free: 13.81 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 3.018e-05/0.4528, allocations: 84.14 kB / 0.849 GB, free: 13.72 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 3.021e-05/0.4528, allocations: 19.7 kB / 0.849 GB, free: 13.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.126e-06/0.4529, allocations: 0 / 0.849 GB, free: 13.7 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001183/0.453, allocations: 318.8 kB / 0.8493 GB, free: 13.38 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.351e-05/0.453, allocations: 7.984 kB / 0.8493 GB, free: 13.38 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.063e-05/0.453, allocations: 12 kB / 0.8493 GB, free: 13.36 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.074e-05/0.4531, allocations: 36.86 kB / 0.8494 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.4531, allocations: 0 / 0.8494 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001003/0.4532, allocations: 61.62 kB / 0.8494 GB, free: 13.26 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/0.4533, allocations: 13.97 kB / 0.8494 GB, free: 13.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.92e-06/0.4533, allocations: 0 / 0.8494 GB, free: 13.25 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.4533, allocations: 0 / 0.8494 GB, free: 13.25 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.305e-05/0.4533, allocations: 11.98 kB / 0.8495 GB, free: 13.23 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.4534, allocations: 0 / 0.8495 GB, free: 13.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.089e-05/0.4534, allocations: 4 kB / 0.8495 GB, free: 13.23 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.4534, allocations: 4 kB / 0.8495 GB, free: 13.23 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 (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.862e-05/0.4535, allocations: 109.8 kB / 0.8496 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.354e-05/0.4535, allocations: 11.84 kB / 0.8496 GB, free: 13.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001479/0.4537, allocations: 81.52 kB / 0.8497 GB, free: 13.01 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.4537, allocations: 0 / 0.8497 GB, free: 13.01 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.4537, allocations: 0 / 0.8497 GB, free: 13.01 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.4537, allocations: 4 kB / 0.8497 GB, free: 13.01 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003096/0.454, allocations: 319.5 kB / 0.85 GB, free: 12.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.454, allocations: 3.938 kB / 0.85 GB, free: 12.63 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.884e-05/0.4541, allocations: 12.03 kB / 0.85 GB, free: 12.62 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.78e-06/0.4541, allocations: 4.516 kB / 0.85 GB, free: 12.62 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.316e-06/0.4541, allocations: 3.984 kB / 0.85 GB, free: 12.61 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.4541, allocations: 0 / 0.85 GB, free: 12.61 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.4541, allocations: 0 / 0.85 GB, free: 12.61 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001686/0.4543, allocations: 180.3 kB / 0.8502 GB, free: 12.42 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 4.515e-05/0.4543, allocations: 85 kB / 0.8502 GB, free: 12.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.314e-05/0.4544, allocations: 4.062 kB / 0.8502 GB, free: 12.31 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.262e-05/0.4544, allocations: 8 kB / 0.8503 GB, free: 12.3 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.999e-05/0.4545, allocations: 3.984 kB / 0.8503 GB, free: 12.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.022e-05/0.4545, allocations: 7.984 kB / 0.8503 GB, free: 12.29 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 3.19e-05/0.4545, allocations: 79.28 kB / 0.8503 GB, free: 12.21 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4545, allocations: 0 / 0.8503 GB, free: 12.21 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002478/0.4548, allocations: 27.94 kB / 0.8504 GB, free: 12.19 MB / 0.5261 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 () * Number of clocked 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.0001758/0.455, allocations: 127.2 kB / 0.8505 GB, free: 12.05 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001001/0.4551, allocations: 39.92 kB / 0.8505 GB, free: 12.01 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4551, allocations: 0 / 0.8505 GB, free: 12.01 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 2.725e-05/0.4551, allocations: 15.98 kB / 0.8505 GB, free: 12 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002112/0.4553, allocations: 9.469 kB / 0.8506 GB, free: 11.99 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003986/0.4557, allocations: 226.3 kB / 0.8508 GB, free: 11.74 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002277/0.456, allocations: 0.677 MB / 0.8514 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 3.21e-05/0.456, allocations: 4 kB / 0.8514 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.145e-05/0.456, allocations: 23.38 kB / 0.8515 GB, free: 11.01 MB / 0.5261 GB Notification: Performance of SimCode: time 3.21e-07/0.4561, allocations: 0 / 0.8515 GB, free: 11.01 MB / 0.5261 GB Notification: Performance of Templates: time 0.00262/0.4587, allocations: 0.6108 MB / 0.8521 GB, free: 10.45 MB / 0.5261 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)