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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001697/0.001697, allocations: 105.5 kB / 16.41 MB, free: 6.488 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.001958/0.001958, allocations: 187 kB / 17.34 MB, free: 5.73 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 / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.218/2.218, allocations: 390.2 MB / 0.6655 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 59.91 kB / 0.9515 GB, free: 7.648 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9022/0.9038, allocations: 140.4 MB / 1.089 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002509/0.9063, allocations: 1.272 MB / 1.09 GB, free: 4.621 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001018/0.9074, allocations: 0.6175 MB / 1.09 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.521e-05/0.9074, allocations: 0 / 1.09 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.704e-05/0.9074, allocations: 1.984 kB / 1.09 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.287e-05/0.9075, allocations: 8.438 kB / 1.09 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005605/0.9081, allocations: 145.2 kB / 1.091 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.761e-05/0.9081, allocations: 20.08 kB / 1.091 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.831e-05/0.9082, allocations: 5.656 kB / 1.091 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.814e-05/0.9083, allocations: 9.797 kB / 1.091 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.904e-05/0.9083, allocations: 13.14 kB / 1.091 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.281e-05/0.9083, allocations: 1.062 kB / 1.091 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000614/0.909, allocations: 341.2 kB / 1.091 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.423e-05/0.909, allocations: 5.719 kB / 1.091 GB, free: 3.992 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.828e-05/0.909, allocations: 9.578 kB / 1.091 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000289/0.9093, allocations: 145.3 kB / 1.091 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.9093, allocations: 0 / 1.091 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.903e-06/0.9093, allocations: 0.7812 kB / 1.091 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.033e-06/0.9093, allocations: 0 / 1.091 GB, free: 3.945 MB / 0.8575 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.0003891/0.9097, allocations: 359.7 kB / 1.091 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.9098, allocations: 10.03 kB / 1.091 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.711e-05/0.9098, allocations: 9.906 kB / 1.091 GB, free: 3.559 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.5e-05/0.9099, allocations: 167.6 kB / 1.092 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.9099, allocations: 1.25 kB / 1.092 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.508e-05/0.91, allocations: 2.312 kB / 1.092 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001097/0.9101, allocations: 41.11 kB / 1.092 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-06/0.9101, allocations: 192 / 1.092 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.9101, allocations: 8.844 kB / 1.092 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.9101, allocations: 0.625 kB / 1.092 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.675e-05/0.9102, allocations: 12.17 kB / 1.092 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000139/0.9103, allocations: 162.7 kB / 1.092 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001874/0.9105, allocations: 44.03 kB / 1.092 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.653e-05/0.9105, allocations: 18.16 kB / 1.092 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.9106, allocations: 1.125 kB / 1.092 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.99e-05/0.9106, allocations: 44.14 kB / 1.092 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 8.92e-07/0.9106, allocations: 0 / 1.092 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0006084/0.9112, allocations: 308.8 kB / 1.092 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.872e-05/0.9112, allocations: 53.23 kB / 1.092 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.416e-05/0.9113, allocations: 99.44 kB / 1.092 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.132e-05/0.9113, allocations: 25.7 kB / 1.092 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.963e-05/0.9114, allocations: 89.84 kB / 1.093 GB, free: 2.449 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.435e-05/0.9114, allocations: 24.62 kB / 1.093 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.244e-05/0.9114, allocations: 19.31 kB / 1.093 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.394e-05/0.9115, allocations: 314.4 kB / 1.093 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.749e-05/0.9115, allocations: 10.83 kB / 1.093 GB, free: 2.094 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.352e-05/0.9115, allocations: 12.7 kB / 1.093 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.586e-05/0.9116, allocations: 29.22 kB / 1.093 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.9116, allocations: 0.6562 kB / 1.093 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001026/0.9117, allocations: 75.88 kB / 1.093 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.9118, allocations: 15.77 kB / 1.093 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.9118, allocations: 0.8125 kB / 1.093 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.9118, allocations: 0.75 kB / 1.093 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.406e-05/0.9118, allocations: 10.95 kB / 1.093 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.9119, allocations: 0.8438 kB / 1.093 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.736e-05/0.9119, allocations: 0.8125 kB / 1.093 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.684e-06/0.9119, allocations: 2.047 kB / 1.093 GB, free: 2.012 MB / 0.8575 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 5.203e-05/0.9119, allocations: 112.7 kB / 1.093 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.299e-05/0.912, allocations: 9.781 kB / 1.093 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001378/0.9121, allocations: 77.06 kB / 1.093 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.9121, allocations: 1.688 kB / 1.093 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.9121, allocations: 0 / 1.093 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.9121, allocations: 2.078 kB / 1.093 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002703/0.9124, allocations: 315.9 kB / 1.094 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.9124, allocations: 0.7031 kB / 1.094 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.281e-05/0.9125, allocations: 11.75 kB / 1.094 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.9125, allocations: 1.125 kB / 1.094 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.656e-06/0.9125, allocations: 5.938 kB / 1.094 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.9125, allocations: 5.031 kB / 1.094 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.9125, allocations: 0.6562 kB / 1.094 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001688/0.9127, allocations: 175.6 kB / 1.094 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.515e-05/0.9127, allocations: 85.97 kB / 1.094 GB, free: 1.238 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.301e-05/0.9128, allocations: 5.688 kB / 1.094 GB, free: 1.234 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.036e-05/0.9128, allocations: 5.391 kB / 1.094 GB, free: 1.23 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.096e-05/0.9129, allocations: 9.156 kB / 1.094 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-06/0.9129, allocations: 7.078 kB / 1.094 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.235e-05/0.9129, allocations: 82.16 kB / 1.094 GB, free: 1.145 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9129, allocations: 3.938 kB / 1.094 GB, free: 1.141 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002515/0.9132, allocations: 23.98 kB / 1.094 GB, free: 1.133 MB / 0.8575 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.0001871/0.9134, allocations: 121.5 kB / 1.094 GB, free: 1.039 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001196/0.9135, allocations: 36.27 kB / 1.094 GB, free: 1.027 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 6.623e-06/0.9135, allocations: 5.062 kB / 1.094 GB, free: 1.023 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 2.947e-05/0.9135, allocations: 16.67 kB / 1.094 GB, free: 1.02 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002269/0.9138, allocations: 13.98 kB / 1.094 GB, free: 1.012 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004096/0.9142, allocations: 212.8 kB / 1.094 GB, free: 0.8164 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001456/0.9143, allocations: 0.6803 MB / 1.095 GB, free: 16.12 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.245e-05/0.9144, allocations: 10.53 kB / 1.095 GB, free: 16.11 MB / 0.8731 GB Notification: Performance of SimCode: time 1.9e-07/0.9144, allocations: 0 / 1.095 GB, free: 16.11 MB / 0.8731 GB Notification: Performance of Templates: time 0.002998/0.9174, allocations: 0.798 MB / 1.096 GB, free: 16.05 MB / 0.8731 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)