Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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_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.|err_m_flow|err_der_m_flow",fileNamePrefix="Buildings_10_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.|err_m_flow|err_der_m_flow",fileNamePrefix="Buildings_10_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.001301/0.001301, allocations: 107.5 kB / 16.41 MB, free: 6.508 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.00126/0.00126, allocations: 187 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.34/1.34, 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 10.1.1-maint.10.0.x/package.mo): time 2.404/2.404, allocations: 437 MB / 0.7112 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 67.89 kB / 1.019 GB, free: 9.402 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8949/0.8962, allocations: 151.6 MB / 1.167 GB, free: 3.84 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002596/0.8988, allocations: 1.277 MB / 1.169 GB, free: 2.555 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001088/0.8999, allocations: 0.6251 MB / 1.169 GB, free: 1.93 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.028e-05/0.9, allocations: 0 / 1.169 GB, free: 1.93 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.35e-05/0.9, allocations: 3.938 kB / 1.169 GB, free: 1.926 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 3.689e-05/0.9001, allocations: 0 / 1.169 GB, free: 1.926 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006524/0.9007, allocations: 153 kB / 1.169 GB, free: 1.777 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 6.822e-05/0.9008, allocations: 31.84 kB / 1.169 GB, free: 1.746 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.952e-05/0.9008, allocations: 4 kB / 1.169 GB, free: 1.742 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 2.574e-05/0.9009, allocations: 11.94 kB / 1.169 GB, free: 1.73 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.193e-05/0.9009, allocations: 15.92 kB / 1.169 GB, free: 1.715 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.577e-05/0.901, allocations: 4 kB / 1.169 GB, free: 1.711 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004913/0.9015, allocations: 343.3 kB / 1.17 GB, free: 1.375 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.662e-05/0.9015, allocations: 11.98 kB / 1.17 GB, free: 1.363 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.7e-05/0.9015, allocations: 11.92 kB / 1.17 GB, free: 1.352 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002739/0.9018, allocations: 151.5 kB / 1.17 GB, free: 1.207 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.9018, allocations: 0 / 1.17 GB, free: 1.207 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.815e-06/0.9018, allocations: 0 / 1.17 GB, free: 1.207 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.9018, allocations: 3.938 kB / 1.17 GB, free: 1.203 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000452/0.9023, allocations: 369.3 kB / 1.17 GB, free: 0.793 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.9023, allocations: 8.922 kB / 1.17 GB, free: 0.7852 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.203e-05/0.9024, allocations: 8.844 kB / 1.17 GB, free: 0.7773 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001202/0.9025, allocations: 160.4 kB / 1.17 GB, free: 0.582 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.515e-05/0.9025, allocations: 8.375 kB / 1.17 GB, free: 0.5742 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.645e-05/0.9026, allocations: 384 / 1.17 GB, free: 0.5742 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001247/0.9027, allocations: 54.23 kB / 1.17 GB, free: 0.5156 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.9027, allocations: 192 / 1.17 GB, free: 0.5156 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.9027, allocations: 3.938 kB / 1.17 GB, free: 0.5117 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.9027, allocations: 11.98 kB / 1.17 GB, free: 0.5 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.368e-05/0.9028, allocations: 23.91 kB / 1.17 GB, free: 488 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001822/0.903, allocations: 169.7 kB / 1.171 GB, free: 268 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001205/0.9031, allocations: 54.56 kB / 1.171 GB, free: 204 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.523e-05/0.9032, allocations: 28.84 kB / 1.171 GB, free: 172 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.195e-05/0.9032, allocations: 3.938 kB / 1.171 GB, free: 168 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.675e-05/0.9032, allocations: 38.56 kB / 1.171 GB, free: 120 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.9032, allocations: 0 / 1.171 GB, free: 120 kB / 0.8887 GB Notification: Performance of matching and sorting (n=11): time 0.001199/0.9044, allocations: 0.5955 MB / 1.171 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.387e-05/0.9045, allocations: 55.34 kB / 1.171 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.84e-05/0.9046, allocations: 97.86 kB / 1.172 GB, free: 15.26 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.945e-05/0.9046, allocations: 29.7 kB / 1.172 GB, free: 15.22 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 4.125e-05/0.9046, allocations: 88.06 kB / 1.172 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.907e-05/0.9047, allocations: 31.47 kB / 1.172 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.497e-05/0.9047, allocations: 29.7 kB / 1.172 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001144/0.9049, allocations: 318.8 kB / 1.172 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.987e-05/0.9049, allocations: 19.98 kB / 1.172 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.773e-05/0.905, allocations: 23.98 kB / 1.172 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.922e-05/0.905, allocations: 54.48 kB / 1.172 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.42e-07/0.9051, allocations: 0 / 1.172 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000148/0.9052, allocations: 111.3 kB / 1.172 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.9052, allocations: 7.938 kB / 1.172 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.9052, allocations: 0 / 1.172 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.9053, allocations: 0 / 1.172 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.9054, allocations: 20 kB / 1.172 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.9054, allocations: 0 / 1.172 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.573e-05/0.9054, allocations: 7.984 kB / 1.172 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.575e-06/0.9054, allocations: 4 kB / 1.172 GB, free: 14.5 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 (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 7.98e-05/0.9055, allocations: 113.8 kB / 1.172 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.594e-05/0.9055, allocations: 7.938 kB / 1.172 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001945/0.9057, allocations: 109.5 kB / 1.172 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.9057, allocations: 0 / 1.172 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.9058, allocations: 0 / 1.172 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.9058, allocations: 3.984 kB / 1.172 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000394/0.9062, allocations: 350.5 kB / 1.173 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.9062, allocations: 3.984 kB / 1.173 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001066/0.9063, allocations: 20 kB / 1.173 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.9063, allocations: 0 / 1.173 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.9063, allocations: 8.094 kB / 1.173 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.9063, allocations: 3.938 kB / 1.173 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.9063, allocations: 0 / 1.173 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002495/0.9066, allocations: 219.3 kB / 1.173 GB, free: 13.58 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.715e-05/0.9066, allocations: 85.05 kB / 1.173 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.632e-05/0.9067, allocations: 7.938 kB / 1.173 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.982e-05/0.9068, allocations: 8.062 kB / 1.173 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.233e-05/0.9068, allocations: 7.984 kB / 1.173 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.141e-06/0.9068, allocations: 0 / 1.173 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.477e-05/0.9068, allocations: 83.28 kB / 1.173 GB, free: 13.37 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9068, allocations: 0 / 1.173 GB, free: 13.37 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002796/0.9071, allocations: 39.92 kB / 1.173 GB, free: 13.33 MB / 0.9044 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.0002157/0.9074, allocations: 131.2 kB / 1.173 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001513/0.9075, allocations: 67.78 kB / 1.173 GB, free: 13.13 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.9075, allocations: 4.094 kB / 1.173 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 5.806e-05/0.9076, allocations: 35.98 kB / 1.173 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002237/0.9078, allocations: 7.938 kB / 1.173 GB, free: 13.08 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005764/0.9084, allocations: 306.6 kB / 1.174 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002619/0.9087, allocations: 0.6885 MB / 1.174 GB, free: 12.04 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.108e-05/0.9087, allocations: 15.44 kB / 1.174 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of SimCode: time 2.3e-07/0.9087, allocations: 0 / 1.174 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of Templates: time 0.002916/0.9116, allocations: 1.134 MB / 1.176 GB, free: 10.9 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)