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.0009451/0.0009451, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001471/0.001471, allocations: 179.3 kB / 16.92 MB, free: 6.652 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.375/1.375, allocations: 223.3 MB / 241 MB, free: 5.277 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.424/2.424, allocations: 390.9 MB / 0.667 GB, free: 2.332 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003657/0.0003659, allocations: 8 kB / 0.8166 GB, free: 13.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7341/0.7345, allocations: 142.4 MB / 0.9557 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.001239/0.7357, allocations: 0.9995 MB / 0.9567 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009172/0.7367, allocations: 0.6111 MB / 0.9573 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.67e-05/0.7367, allocations: 0 / 0.9573 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.514e-05/0.7367, allocations: 0 / 0.9573 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.024e-05/0.7368, allocations: 4.938 kB / 0.9573 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004455/0.7372, allocations: 123.1 kB / 0.9574 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.005e-05/0.7373, allocations: 17.03 kB / 0.9574 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.178e-05/0.7373, allocations: 10.08 kB / 0.9574 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.593e-05/0.7374, allocations: 3.594 kB / 0.9574 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.081e-05/0.7374, allocations: 16.08 kB / 0.9574 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.104e-05/0.7375, allocations: 0 / 0.9574 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004516/0.7379, allocations: 340.9 kB / 0.9578 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.253e-05/0.7379, allocations: 5.047 kB / 0.9578 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.57e-05/0.738, allocations: 38.06 kB / 0.9578 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001609/0.7382, allocations: 95.62 kB / 0.9579 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.7382, allocations: 0 / 0.9579 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.774e-06/0.7382, allocations: 0 / 0.9579 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.7382, allocations: 1.344 kB / 0.9579 GB, free: 5.977 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.0003165/0.7385, allocations: 361.2 kB / 0.9583 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.7386, allocations: 9.25 kB / 0.9583 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.66e-05/0.7386, allocations: 6.344 kB / 0.9583 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.711e-05/0.7387, allocations: 173.8 kB / 0.9584 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.179e-05/0.7387, allocations: 1.688 kB / 0.9584 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.797e-05/0.7387, allocations: 1.562 kB / 0.9584 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.924e-05/0.7388, allocations: 44.53 kB / 0.9585 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.7388, allocations: 1.438 kB / 0.9585 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.7389, allocations: 7.938 kB / 0.9585 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.7389, allocations: 5.281 kB / 0.9585 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.63e-05/0.7389, allocations: 12.83 kB / 0.9585 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001269/0.739, allocations: 155.3 kB / 0.9587 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001687/0.7392, allocations: 40.75 kB / 0.9587 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.288e-05/0.7393, allocations: 15.95 kB / 0.9587 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.968e-05/0.7393, allocations: 3.938 kB / 0.9587 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.716e-05/0.7393, allocations: 43.94 kB / 0.9588 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.7393, allocations: 0 / 0.9588 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0005423/0.7399, allocations: 311.3 kB / 0.959 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.385e-05/0.7399, allocations: 52.75 kB / 0.9591 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.567e-05/0.7399, allocations: 97.95 kB / 0.9592 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.325e-06/0.74, allocations: 25.7 kB / 0.9592 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.847e-05/0.74, allocations: 89.5 kB / 0.9593 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.62e-05/0.74, allocations: 22.22 kB / 0.9593 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.093e-05/0.74, allocations: 10.94 kB / 0.9593 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.589e-05/0.7401, allocations: 320.3 kB / 0.9596 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.481e-05/0.7401, allocations: 10.16 kB / 0.9596 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.93e-05/0.7401, allocations: 6.781 kB / 0.9597 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.947e-05/0.7402, allocations: 41.12 kB / 0.9597 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.32e-07/0.7402, allocations: 0 / 0.9597 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.663e-05/0.7403, allocations: 60.69 kB / 0.9598 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.7403, allocations: 18.27 kB / 0.9598 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.7403, allocations: 1.672 kB / 0.9598 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.7404, allocations: 0.5156 kB / 0.9598 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.053e-05/0.7404, allocations: 17.69 kB / 0.9598 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.7404, allocations: 3.984 kB / 0.9598 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.702e-05/0.7404, allocations: 2.156 kB / 0.9598 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.7405, allocations: 1.094 kB / 0.9598 GB, free: 3.98 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.844e-05/0.7405, allocations: 115.4 kB / 0.9599 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.628e-06/0.7405, allocations: 5.688 kB / 0.9599 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001218/0.7407, allocations: 75.61 kB / 0.96 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-06/0.7407, allocations: 3.984 kB / 0.96 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.7407, allocations: 0 / 0.96 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.7407, allocations: 1.969 kB / 0.96 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002356/0.7409, allocations: 311.5 kB / 0.9603 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.7409, allocations: 0 / 0.9603 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.759e-05/0.741, allocations: 13.89 kB / 0.9603 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.741, allocations: 1.469 kB / 0.9603 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.406e-06/0.741, allocations: 1.562 kB / 0.9603 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.741, allocations: 4.031 kB / 0.9603 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.741, allocations: 5.406 kB / 0.9603 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001446/0.7412, allocations: 184.8 kB / 0.9605 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.711e-05/0.7412, allocations: 84.08 kB / 0.9606 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.352e-05/0.7412, allocations: 5.469 kB / 0.9606 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.698e-05/0.7413, allocations: 1.406 kB / 0.9606 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.547e-05/0.7413, allocations: 10.45 kB / 0.9606 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.51e-06/0.7413, allocations: 2.25 kB / 0.9606 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.053e-05/0.7414, allocations: 81.66 kB / 0.9607 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7414, allocations: 0 / 0.9607 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002411/0.7416, allocations: 18.84 kB / 0.9607 GB, free: 3.078 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.0001611/0.7418, allocations: 128.5 kB / 0.9608 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 9.419e-05/0.7419, allocations: 33.69 kB / 0.9608 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.7419, allocations: 0 / 0.9608 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.351e-05/0.7419, allocations: 22.89 kB / 0.9609 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002207/0.7421, allocations: 11.62 kB / 0.9609 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003614/0.7425, allocations: 253.8 kB / 0.9611 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001137/0.7426, allocations: 0.6798 MB / 0.9618 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.935e-05/0.7427, allocations: 10.19 kB / 0.9618 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of SimCode: time 3.01e-07/0.7427, allocations: 0 / 0.9618 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of Templates: time 0.002328/0.745, allocations: 0.7893 MB / 0.9626 GB, free: 1.594 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)