Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005947/0.005947, allocations: 101.1 kB / 15.88 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.001355/0.001355, allocations: 191.5 kB / 16.79 MB, free: 5.809 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.387/1.387, allocations: 222.9 MB / 240.5 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.385/2.385, allocations: 390.2 MB / 0.6649 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 59.91 kB / 0.8125 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6645/0.6661, allocations: 140.4 MB / 0.9496 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002166/0.6683, allocations: 1.326 MB / 0.9509 GB, free: 8.074 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008932/0.6692, allocations: 0.6245 MB / 0.9515 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.584e-05/0.6692, allocations: 0 / 0.9515 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.189e-05/0.6692, allocations: 3.938 kB / 0.9515 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.667e-05/0.6693, allocations: 5.359 kB / 0.9515 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004108/0.6697, allocations: 118.6 kB / 0.9516 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.382e-05/0.6698, allocations: 20.17 kB / 0.9516 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.05e-05/0.6698, allocations: 6.734 kB / 0.9516 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.258e-05/0.6698, allocations: 8.062 kB / 0.9517 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.362e-05/0.6699, allocations: 14.73 kB / 0.9517 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.3e-05/0.6699, allocations: 1.375 kB / 0.9517 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004209/0.6703, allocations: 344.3 kB / 0.952 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.188e-05/0.6704, allocations: 5.406 kB / 0.952 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.273e-05/0.6704, allocations: 4.219 kB / 0.952 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000171/0.6706, allocations: 107 kB / 0.9521 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.6706, allocations: 1.312 kB / 0.9521 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.42e-07/0.6706, allocations: 0 / 0.9521 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.366e-06/0.6706, allocations: 0 / 0.9521 GB, free: 7.215 MB / 0.7169 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.0003338/0.6709, allocations: 366.9 kB / 0.9525 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.671, allocations: 10.12 kB / 0.9525 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.477e-05/0.671, allocations: 2.188 kB / 0.9525 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.7e-05/0.6711, allocations: 169.7 kB / 0.9526 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.6711, allocations: 5.812 kB / 0.9526 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.879e-05/0.6711, allocations: 1.719 kB / 0.9526 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000107/0.6712, allocations: 40.41 kB / 0.9527 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.375e-06/0.6713, allocations: 192 / 0.9527 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.798e-06/0.6713, allocations: 5.469 kB / 0.9527 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.6713, allocations: 0 / 0.9527 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.029e-05/0.6713, allocations: 14.81 kB / 0.9527 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001211/0.6714, allocations: 158 kB / 0.9528 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001702/0.6716, allocations: 47.52 kB / 0.9529 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.061e-05/0.6717, allocations: 20.69 kB / 0.9529 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.084e-05/0.6717, allocations: 1.062 kB / 0.9529 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.514e-05/0.6717, allocations: 35.55 kB / 0.9529 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.6717, allocations: 4 kB / 0.953 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0005445/0.6723, allocations: 308.2 kB / 0.9532 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.259e-05/0.6723, allocations: 51.41 kB / 0.9533 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.326e-05/0.6723, allocations: 101.8 kB / 0.9534 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.578e-06/0.6724, allocations: 34.89 kB / 0.9534 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.381e-05/0.6724, allocations: 80.14 kB / 0.9535 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.344e-05/0.6724, allocations: 26 kB / 0.9535 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.135e-05/0.6724, allocations: 27.78 kB / 0.9536 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.524e-05/0.6725, allocations: 316.3 kB / 0.9539 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.46e-05/0.6725, allocations: 13.55 kB / 0.9539 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.12e-05/0.6726, allocations: 7.312 kB / 0.9539 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.136e-05/0.6726, allocations: 32.42 kB / 0.9539 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.81e-07/0.6726, allocations: 0 / 0.9539 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.386e-05/0.6727, allocations: 60.56 kB / 0.954 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.6727, allocations: 9.094 kB / 0.954 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.6727, allocations: 0 / 0.954 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.6728, allocations: 5.594 kB / 0.954 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.045e-05/0.6728, allocations: 20.61 kB / 0.954 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.6728, allocations: 1.031 kB / 0.954 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.683e-05/0.6728, allocations: 0 / 0.954 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.651e-06/0.6728, allocations: 2.062 kB / 0.954 GB, free: 5.219 MB / 0.7169 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.537e-05/0.6729, allocations: 112.8 kB / 0.9541 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.105e-05/0.6729, allocations: 5.594 kB / 0.9541 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001209/0.673, allocations: 74.27 kB / 0.9542 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.673, allocations: 5.625 kB / 0.9542 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.6731, allocations: 4 kB / 0.9542 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.6731, allocations: 0 / 0.9542 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002175/0.6733, allocations: 316 kB / 0.9545 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.6733, allocations: 1.312 kB / 0.9545 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.77e-05/0.6734, allocations: 13.09 kB / 0.9545 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.6734, allocations: 1.375 kB / 0.9545 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.667e-06/0.6734, allocations: 5.016 kB / 0.9545 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.6734, allocations: 0.7812 kB / 0.9545 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.6734, allocations: 5.406 kB / 0.9545 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001411/0.6735, allocations: 173.8 kB / 0.9547 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.097e-05/0.6736, allocations: 87.16 kB / 0.9548 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.332e-05/0.6736, allocations: 1.125 kB / 0.9548 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.916e-05/0.6737, allocations: 1.125 kB / 0.9548 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.596e-05/0.6737, allocations: 7.156 kB / 0.9548 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.234e-06/0.6737, allocations: 10.14 kB / 0.9548 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.039e-05/0.6737, allocations: 85.25 kB / 0.9549 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6737, allocations: 0 / 0.9549 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002405/0.674, allocations: 19.12 kB / 0.9549 GB, free: 4.316 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.0001577/0.6741, allocations: 121.4 kB / 0.955 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 9.98e-05/0.6743, allocations: 35.56 kB / 0.955 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.6743, allocations: 1.031 kB / 0.955 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.866e-05/0.6743, allocations: 18.94 kB / 0.9551 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002174/0.6745, allocations: 19.27 kB / 0.9551 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003605/0.6749, allocations: 233.3 kB / 0.9553 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.783e-05/0.675, allocations: 0.6807 MB / 0.956 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.877e-05/0.675, allocations: 11.56 kB / 0.956 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of SimCode: time 2.7e-07/0.675, allocations: 0 / 0.956 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of Templates: time 0.001995/0.677, allocations: 0.7874 MB / 0.9567 GB, free: 2.852 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)