Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001203/0.001203, allocations: 106.9 kB / 16.27 MB, free: 6.414 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.001283/0.001283, allocations: 189.3 kB / 17.2 MB, free: 5.953 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.362/1.362, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.666/2.666, allocations: 482.4 MB / 0.7553 GB, free: 7.02 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 68.19 kB / 0.9245 GB, free: 16 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7425/0.7444, allocations: 162.2 MB / 1.083 GB, free: 1.664 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002155/0.7466, allocations: 1.288 MB / 1.084 GB, free: 0.75 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.000854/0.7475, allocations: 0.6114 MB / 1.085 GB, free: 332 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.583e-05/0.7475, allocations: 0.875 kB / 1.085 GB, free: 332 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.612e-05/0.7475, allocations: 4.781 kB / 1.085 GB, free: 328 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.352e-05/0.7476, allocations: 1.719 kB / 1.085 GB, free: 328 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004765/0.7481, allocations: 147.8 kB / 1.085 GB, free: 260 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.344e-05/0.7481, allocations: 23.89 kB / 1.085 GB, free: 248 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.101e-05/0.7482, allocations: 7.328 kB / 1.085 GB, free: 244 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.172e-05/0.7482, allocations: 8.578 kB / 1.085 GB, free: 240 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.318e-05/0.7482, allocations: 8.484 kB / 1.085 GB, free: 236 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.155e-05/0.7483, allocations: 1.531 kB / 1.085 GB, free: 236 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000499/0.7488, allocations: 343.5 kB / 1.085 GB, free: 136 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.205e-05/0.7488, allocations: 4.828 kB / 1.085 GB, free: 132 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.295e-05/0.7488, allocations: 13.14 kB / 1.085 GB, free: 124 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002412/0.7491, allocations: 148 kB / 1.085 GB, free: 76 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.7491, allocations: 4 kB / 1.085 GB, free: 72 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.112e-06/0.7491, allocations: 1.156 kB / 1.085 GB, free: 72 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.198e-06/0.7491, allocations: 0 / 1.085 GB, free: 72 kB / 0.8262 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.0004363/0.7495, allocations: 358.7 kB / 1.086 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.7496, allocations: 9.531 kB / 1.086 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.417e-05/0.7496, allocations: 6.125 kB / 1.086 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000137/0.7498, allocations: 170.6 kB / 1.086 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.7498, allocations: 5.656 kB / 1.086 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.385e-05/0.7498, allocations: 4.156 kB / 1.086 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001073/0.7499, allocations: 46.55 kB / 1.086 GB, free: 15.44 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.7499, allocations: 192 / 1.086 GB, free: 15.44 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.75, allocations: 4.734 kB / 1.086 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.75, allocations: 1.094 kB / 1.086 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.062e-05/0.75, allocations: 12.7 kB / 1.086 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001774/0.7502, allocations: 153.8 kB / 1.086 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001773/0.7504, allocations: 48.09 kB / 1.086 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.43e-05/0.7504, allocations: 22.38 kB / 1.086 GB, free: 15.19 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.856e-05/0.7504, allocations: 0.7031 kB / 1.086 GB, free: 15.19 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.527e-05/0.7505, allocations: 32.22 kB / 1.086 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=4): time 1.002e-06/0.7505, allocations: 0 / 1.086 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of matching and sorting (n=6): time 0.0006021/0.7511, allocations: 301 kB / 1.087 GB, free: 14.87 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.744e-05/0.7511, allocations: 57 kB / 1.087 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.688e-05/0.7512, allocations: 100.4 kB / 1.087 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.7512, allocations: 26.52 kB / 1.087 GB, free: 14.67 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 4.291e-05/0.7513, allocations: 81.02 kB / 1.087 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.015e-05/0.7513, allocations: 23.14 kB / 1.087 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.6e-05/0.7514, allocations: 24.38 kB / 1.087 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001289/0.7515, allocations: 318.9 kB / 1.087 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.479e-05/0.7515, allocations: 6.266 kB / 1.087 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.481e-05/0.7516, allocations: 15.95 kB / 1.087 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.142e-05/0.7516, allocations: 42.59 kB / 1.087 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.7516, allocations: 4.062 kB / 1.087 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000104/0.7517, allocations: 64.92 kB / 1.087 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.7518, allocations: 8.344 kB / 1.087 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.7518, allocations: 0 / 1.087 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.7518, allocations: 2.469 kB / 1.087 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.348e-05/0.7519, allocations: 15.02 kB / 1.087 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.7519, allocations: 0 / 1.087 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.322e-05/0.7519, allocations: 4.625 kB / 1.087 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.58e-06/0.7519, allocations: 5.812 kB / 1.087 GB, free: 14.13 MB / 0.8419 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 7.583e-05/0.752, allocations: 111.9 kB / 1.087 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.395e-05/0.752, allocations: 7.219 kB / 1.087 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001377/0.7521, allocations: 76.59 kB / 1.088 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.7522, allocations: 1.578 kB / 1.088 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.7522, allocations: 0.5156 kB / 1.088 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.7522, allocations: 1.5 kB / 1.088 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003251/0.7525, allocations: 312.2 kB / 1.088 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.7525, allocations: 5.469 kB / 1.088 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.257e-05/0.7526, allocations: 14.09 kB / 1.088 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.7526, allocations: 1.562 kB / 1.088 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.131e-06/0.7526, allocations: 1.25 kB / 1.088 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.7526, allocations: 1.797 kB / 1.088 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.7526, allocations: 1.156 kB / 1.088 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001875/0.7528, allocations: 183.7 kB / 1.088 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.782e-05/0.7529, allocations: 85.81 kB / 1.088 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.553e-05/0.7529, allocations: 6.609 kB / 1.088 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.092e-05/0.753, allocations: 4.75 kB / 1.088 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.558e-05/0.753, allocations: 4.516 kB / 1.088 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.651e-06/0.753, allocations: 3.062 kB / 1.088 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.414e-05/0.7531, allocations: 79 kB / 1.088 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7531, allocations: 3.938 kB / 1.088 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002421/0.7533, allocations: 19.84 kB / 1.088 GB, free: 13.27 MB / 0.8419 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.0001903/0.7535, allocations: 130.2 kB / 1.088 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001215/0.7536, allocations: 35.53 kB / 1.088 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.7536, allocations: 0.9375 kB / 1.088 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 3.271e-05/0.7537, allocations: 21.16 kB / 1.088 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002111/0.7539, allocations: 8.484 kB / 1.088 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004067/0.7543, allocations: 218.8 kB / 1.089 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000295/0.7546, allocations: 0.6859 MB / 1.089 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.244e-05/0.7546, allocations: 11.88 kB / 1.089 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of SimCode: time 2.2e-07/0.7547, allocations: 1.188 kB / 1.089 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of Templates: time 0.002318/0.757, allocations: 0.7877 MB / 1.09 GB, free: 12.18 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)