Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 109.3 kB / 16.41 MB, free: 6.445 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.001109/0.001109, allocations: 183 kB / 17.34 MB, free: 5.742 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.341/1.341, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.519/2.519, allocations: 437 MB / 0.7112 GB, free: 4.43 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 63.89 kB / 1.019 GB, free: 9.469 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8692/0.8706, allocations: 151.6 MB / 1.167 GB, free: 3.883 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.00233/0.8729, allocations: 1.285 MB / 1.169 GB, free: 2.59 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001035/0.874, allocations: 0.6173 MB / 1.169 GB, free: 1.973 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.26e-05/0.874, allocations: 0 / 1.169 GB, free: 1.973 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.147e-05/0.874, allocations: 3.938 kB / 1.169 GB, free: 1.969 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 3.716e-05/0.8741, allocations: 7.984 kB / 1.169 GB, free: 1.961 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000527/0.8746, allocations: 144.4 kB / 1.169 GB, free: 1.82 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 6.222e-05/0.8747, allocations: 19.94 kB / 1.169 GB, free: 1.801 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.534e-05/0.8747, allocations: 7.984 kB / 1.169 GB, free: 1.793 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 4.123e-05/0.8748, allocations: 11.88 kB / 1.169 GB, free: 1.781 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.45e-05/0.8748, allocations: 11.98 kB / 1.169 GB, free: 1.77 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.156e-05/0.8749, allocations: 0 / 1.169 GB, free: 1.77 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004775/0.8753, allocations: 335.4 kB / 1.17 GB, free: 1.441 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.208e-05/0.8754, allocations: 7.984 kB / 1.17 GB, free: 1.434 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.548e-05/0.8754, allocations: 15.92 kB / 1.17 GB, free: 1.418 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002408/0.8756, allocations: 139.5 kB / 1.17 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.8757, allocations: 0 / 1.17 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.653e-06/0.8757, allocations: 0 / 1.17 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.629e-06/0.8757, allocations: 4 kB / 1.17 GB, free: 1.281 MB / 0.8887 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.0004293/0.8761, allocations: 357.3 kB / 1.17 GB, free: 0.8828 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.8761, allocations: 12.03 kB / 1.17 GB, free: 0.8711 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.308e-05/0.8762, allocations: 4.844 kB / 1.17 GB, free: 0.8672 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.8763, allocations: 172.2 kB / 1.17 GB, free: 0.6602 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.217e-05/0.8763, allocations: 4.375 kB / 1.17 GB, free: 0.6562 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.23e-05/0.8764, allocations: 384 / 1.17 GB, free: 0.6562 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000114/0.8765, allocations: 42.25 kB / 1.17 GB, free: 0.6094 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.8765, allocations: 4.125 kB / 1.17 GB, free: 0.6055 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.1e-05/0.8765, allocations: 7.938 kB / 1.17 GB, free: 0.5977 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.8765, allocations: 0 / 1.17 GB, free: 0.5977 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.224e-05/0.8766, allocations: 15.98 kB / 1.17 GB, free: 0.582 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001643/0.8767, allocations: 153.7 kB / 1.171 GB, free: 392 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001833/0.8769, allocations: 46.5 kB / 1.171 GB, free: 336 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.379e-05/0.877, allocations: 20.84 kB / 1.171 GB, free: 312 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.715e-05/0.877, allocations: 4 kB / 1.171 GB, free: 308 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.724e-05/0.877, allocations: 34.56 kB / 1.171 GB, free: 264 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.8771, allocations: 0 / 1.171 GB, free: 264 kB / 0.8887 GB Notification: Performance of matching and sorting (n=6): time 0.0006308/0.8777, allocations: 310.3 kB / 1.171 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.05e-05/0.8777, allocations: 51.41 kB / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001399/0.8779, allocations: 97.86 kB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.8779, allocations: 25.7 kB / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 3.183e-05/0.8779, allocations: 84.14 kB / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.06e-05/0.878, allocations: 27.64 kB / 1.171 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.912e-05/0.878, allocations: 17.72 kB / 1.171 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001331/0.8782, allocations: 322.8 kB / 1.172 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.267e-05/0.8782, allocations: 7.938 kB / 1.172 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.113e-05/0.8782, allocations: 12 kB / 1.172 GB, free: 15.22 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.619e-05/0.8783, allocations: 36.84 kB / 1.172 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.62e-07/0.8783, allocations: 0 / 1.172 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.058e-05/0.8784, allocations: 61.61 kB / 1.172 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.8784, allocations: 15.92 kB / 1.172 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.8784, allocations: 0 / 1.172 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.8784, allocations: 0 / 1.172 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.961e-05/0.8785, allocations: 15.94 kB / 1.172 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.8785, allocations: 0 / 1.172 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.761e-05/0.8785, allocations: 0 / 1.172 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.034e-06/0.8785, allocations: 4 kB / 1.172 GB, free: 15.08 MB / 0.9044 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 6.605e-05/0.8786, allocations: 109.8 kB / 1.172 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.198e-05/0.8786, allocations: 3.938 kB / 1.172 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001436/0.8788, allocations: 89.64 kB / 1.172 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.8788, allocations: 0 / 1.172 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.8788, allocations: 0 / 1.172 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.8788, allocations: 0 / 1.172 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003043/0.8791, allocations: 319.3 kB / 1.172 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.8791, allocations: 0 / 1.172 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.429e-05/0.8792, allocations: 15.98 kB / 1.172 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.8792, allocations: 3.938 kB / 1.172 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.323e-06/0.8792, allocations: 32 / 1.172 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.8792, allocations: 8 kB / 1.172 GB, free: 14.46 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.8792, allocations: 0 / 1.172 GB, free: 14.46 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001749/0.8794, allocations: 180.2 kB / 1.172 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.741e-05/0.8794, allocations: 81.14 kB / 1.172 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.162e-05/0.8795, allocations: 0 / 1.172 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.301e-05/0.8795, allocations: 7.984 kB / 1.172 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.438e-05/0.8796, allocations: 8.062 kB / 1.173 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.951e-06/0.8796, allocations: 4 kB / 1.173 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.223e-05/0.8796, allocations: 75.8 kB / 1.173 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8796, allocations: 0 / 1.173 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002746/0.8799, allocations: 24 kB / 1.173 GB, free: 14.05 MB / 0.9044 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 (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.0001699/0.8801, allocations: 127.1 kB / 1.173 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 9.272e-05/0.8803, allocations: 32 kB / 1.173 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.8803, allocations: 0 / 1.173 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 3.117e-05/0.8803, allocations: 27.92 kB / 1.173 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002219/0.8805, allocations: 3.938 kB / 1.173 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003968/0.8809, allocations: 230.2 kB / 1.173 GB, free: 13.6 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003666/0.8813, allocations: 0.6883 MB / 1.174 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.924e-05/0.8814, allocations: 11.44 kB / 1.174 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of SimCode: time 2.2e-07/0.8814, allocations: 0 / 1.174 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of Templates: time 0.002158/0.8835, allocations: 0.8008 MB / 1.174 GB, free: 12.08 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)