Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.conf.json 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/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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 104.9 kB / 16.27 MB, free: 5.867 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001516/0.001516, allocations: 190.1 kB / 17.2 MB, free: 5.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.698/2.698, allocations: 482.4 MB / 0.7553 GB, free: 6.996 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 70.94 kB / 0.9245 GB, free: 20 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6935/0.6954, allocations: 162.2 MB / 1.083 GB, free: 1.676 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.00226/0.6977, allocations: 1.295 MB / 1.084 GB, free: 0.7578 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0008917/0.6986, allocations: 0.6137 MB / 1.085 GB, free: 340 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.52e-05/0.6987, allocations: 0.5625 kB / 1.085 GB, free: 340 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.491e-05/0.6987, allocations: 0 / 1.085 GB, free: 340 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.978e-05/0.6988, allocations: 6 kB / 1.085 GB, free: 336 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005012/0.6993, allocations: 151.4 kB / 1.085 GB, free: 264 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.439e-05/0.6993, allocations: 28.77 kB / 1.085 GB, free: 252 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.305e-05/0.6994, allocations: 2.812 kB / 1.085 GB, free: 252 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.679e-05/0.6994, allocations: 7.75 kB / 1.085 GB, free: 252 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.399e-05/0.6995, allocations: 27.55 kB / 1.085 GB, free: 232 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.332e-05/0.6995, allocations: 1.688 kB / 1.085 GB, free: 232 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000536/0.7, allocations: 344.1 kB / 1.085 GB, free: 132 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.463e-05/0.7001, allocations: 10.31 kB / 1.085 GB, free: 124 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.48e-05/0.7001, allocations: 10.8 kB / 1.085 GB, free: 120 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002633/0.7003, allocations: 150.9 kB / 1.085 GB, free: 72 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.7004, allocations: 1.438 kB / 1.085 GB, free: 72 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.022e-06/0.7004, allocations: 0 / 1.085 GB, free: 72 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.318e-06/0.7004, allocations: 0 / 1.085 GB, free: 72 kB / 0.8262 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.0004551/0.7008, allocations: 370.6 kB / 1.086 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.209e-05/0.7009, allocations: 13.19 kB / 1.086 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.071e-05/0.7009, allocations: 7.844 kB / 1.086 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001404/0.7011, allocations: 162.7 kB / 1.086 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.7011, allocations: 6.844 kB / 1.086 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.584e-05/0.7011, allocations: 3.531 kB / 1.086 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001223/0.7012, allocations: 57.97 kB / 1.086 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.7013, allocations: 4.844 kB / 1.086 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.263e-05/0.7013, allocations: 4.844 kB / 1.086 GB, free: 15.42 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.94e-06/0.7013, allocations: 1.344 kB / 1.086 GB, free: 15.42 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.369e-05/0.7014, allocations: 22.86 kB / 1.086 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001958/0.7016, allocations: 162.4 kB / 1.086 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001128/0.7017, allocations: 57.98 kB / 1.086 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.463e-05/0.7017, allocations: 27.3 kB / 1.086 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.633e-05/0.7017, allocations: 1.938 kB / 1.086 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.753e-05/0.7018, allocations: 35.81 kB / 1.086 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.072e-06/0.7018, allocations: 5.5 kB / 1.086 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11): time 0.001173/0.703, allocations: 0.5911 MB / 1.087 GB, free: 14.6 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.757e-05/0.703, allocations: 54.3 kB / 1.087 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.366e-05/0.7031, allocations: 97.86 kB / 1.087 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.109e-05/0.7031, allocations: 30.41 kB / 1.087 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 3.869e-05/0.7032, allocations: 81.2 kB / 1.087 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.278e-05/0.7032, allocations: 38.7 kB / 1.087 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.681e-05/0.7033, allocations: 28.86 kB / 1.087 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001486/0.7034, allocations: 317.8 kB / 1.088 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.395e-05/0.7035, allocations: 19.73 kB / 1.088 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.224e-05/0.7035, allocations: 27.02 kB / 1.088 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.019e-05/0.7036, allocations: 51.5 kB / 1.088 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.81e-07/0.7036, allocations: 4 kB / 1.088 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001583/0.7038, allocations: 108.2 kB / 1.088 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.7038, allocations: 5.547 kB / 1.088 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.7038, allocations: 0 / 1.088 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.7039, allocations: 1.062 kB / 1.088 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.884e-05/0.704, allocations: 24.92 kB / 1.088 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.704, allocations: 1.562 kB / 1.088 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.544e-05/0.704, allocations: 4 kB / 1.088 GB, free: 13.83 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.124e-06/0.704, allocations: 3.625 kB / 1.088 GB, free: 13.83 MB / 0.8419 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001001/0.7041, allocations: 120.7 kB / 1.088 GB, free: 13.71 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.939e-05/0.7041, allocations: 7.969 kB / 1.088 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002021/0.7043, allocations: 100.2 kB / 1.088 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.7044, allocations: 1.844 kB / 1.088 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.7044, allocations: 1.406 kB / 1.088 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.7044, allocations: 0.7031 kB / 1.088 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004223/0.7048, allocations: 360.1 kB / 1.088 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.7048, allocations: 0.75 kB / 1.088 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001008/0.7049, allocations: 23.64 kB / 1.088 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.7049, allocations: 1.219 kB / 1.088 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.7049, allocations: 2.125 kB / 1.088 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.7049, allocations: 1.219 kB / 1.088 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.705, allocations: 0 / 1.088 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002658/0.7052, allocations: 223.2 kB / 1.089 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.758e-05/0.7053, allocations: 86.94 kB / 1.089 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.578e-05/0.7053, allocations: 1.625 kB / 1.089 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.607e-05/0.7054, allocations: 11.09 kB / 1.089 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.867e-05/0.7054, allocations: 6.578 kB / 1.089 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/0.7054, allocations: 3.906 kB / 1.089 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.094e-05/0.7055, allocations: 81.56 kB / 1.089 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7055, allocations: 0 / 1.089 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002625/0.7058, allocations: 32.8 kB / 1.089 GB, free: 12.93 MB / 0.8419 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002095/0.706, allocations: 141.6 kB / 1.089 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000161/0.7061, allocations: 73.95 kB / 1.089 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.7062, allocations: 0 / 1.089 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 5.042e-05/0.7062, allocations: 32.03 kB / 1.089 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002088/0.7064, allocations: 8.734 kB / 1.089 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005859/0.707, allocations: 316.2 kB / 1.089 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000336/0.7074, allocations: 0.6861 MB / 1.09 GB, free: 11.83 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.963e-05/0.7074, allocations: 13.52 kB / 1.09 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of SimCode: time 2.2e-07/0.7074, allocations: 1.125 kB / 1.09 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of Templates: time 0.00318/0.7106, allocations: 1.12 MB / 1.091 GB, free: 11.73 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)