Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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 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_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001756/0.001756, allocations: 107.5 kB / 15.99 MB, free: 5.91 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.001826/0.001826, allocations: 193.6 kB / 16.91 MB, free: 5.754 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.368/1.368, allocations: 222.9 MB / 240.6 MB, free: 13.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.653/2.653, allocations: 482.4 MB / 0.755 GB, free: 7.211 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001879/0.001879, allocations: 72.66 kB / 0.924 GB, free: 348 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.771/0.7729, allocations: 162.2 MB / 1.082 GB, free: 1.629 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.0024/0.7753, allocations: 1.538 MB / 1.084 GB, free: 0.5508 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0008946/0.7762, allocations: 0.6396 MB / 1.085 GB, free: 104 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.9e-05/0.7763, allocations: 0 / 1.085 GB, free: 104 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.7e-05/0.7763, allocations: 2.922 kB / 1.085 GB, free: 104 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.786e-05/0.7764, allocations: 8.625 kB / 1.085 GB, free: 96 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005002/0.7769, allocations: 136.2 kB / 1.085 GB, free: 36 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.433e-05/0.777, allocations: 49.88 kB / 1.085 GB, free: 16 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.301e-05/0.777, allocations: 8.672 kB / 1.085 GB, free: 12 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.452e-05/0.7771, allocations: 20.09 kB / 1.085 GB, free: 4 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.766e-05/0.7772, allocations: 33.03 kB / 1.085 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.507e-05/0.7772, allocations: 4.875 kB / 1.085 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005527/0.7777, allocations: 344.5 kB / 1.085 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.077e-05/0.7778, allocations: 13.44 kB / 1.085 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.757e-05/0.7778, allocations: 26.36 kB / 1.085 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002253/0.778, allocations: 114.6 kB / 1.085 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.7781, allocations: 0 / 1.085 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of FrontEnd: time 3.476e-06/0.7781, allocations: 0 / 1.085 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.7781, allocations: 4.438 kB / 1.085 GB, free: 15.83 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006479/0.7787, allocations: 402.5 kB / 1.086 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.7788, allocations: 8.969 kB / 1.086 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.181e-05/0.7788, allocations: 9.219 kB / 1.086 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001447/0.779, allocations: 171.7 kB / 1.086 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.428e-05/0.779, allocations: 3.344 kB / 1.086 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.095e-05/0.779, allocations: 13.58 kB / 1.086 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000246/0.7793, allocations: 79.09 kB / 1.086 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.7793, allocations: 5.25 kB / 1.086 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.452e-05/0.7793, allocations: 6.281 kB / 1.086 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.7793, allocations: 1.312 kB / 1.086 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002334/0.7796, allocations: 50.28 kB / 1.086 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005869/0.7802, allocations: 326.7 kB / 1.086 GB, free: 14.85 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002908/0.7805, allocations: 75.44 kB / 1.086 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000117/0.7806, allocations: 31.81 kB / 1.086 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.7806, allocations: 6.359 kB / 1.086 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/0.7807, allocations: 31.56 kB / 1.086 GB, free: 14.76 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/0.7807, allocations: 4 kB / 1.086 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11): time 0.001692/0.7824, allocations: 0.6435 MB / 1.087 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.338e-05/0.7824, allocations: 53.67 kB / 1.087 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.937e-05/0.7825, allocations: 105.8 kB / 1.087 GB, free: 14.06 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.961e-05/0.7825, allocations: 26.98 kB / 1.087 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.308e-05/0.7826, allocations: 95.27 kB / 1.087 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.969e-05/0.7827, allocations: 39.98 kB / 1.087 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.051e-05/0.7827, allocations: 29.14 kB / 1.087 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001502/0.7829, allocations: 322.2 kB / 1.088 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001335/0.783, allocations: 32.52 kB / 1.088 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001218/0.7831, allocations: 28.56 kB / 1.088 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002479/0.7834, allocations: 74.31 kB / 1.088 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.01e-07/0.7834, allocations: 3.938 kB / 1.088 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.00033/0.7837, allocations: 123 kB / 1.088 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.7838, allocations: 9.859 kB / 1.088 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.7838, allocations: 0 / 1.088 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.7838, allocations: 1.094 kB / 1.088 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001497/0.7839, allocations: 26.12 kB / 1.088 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.784, allocations: 1.094 kB / 1.088 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.377e-05/0.784, allocations: 9.422 kB / 1.088 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/0.784, allocations: 7.016 kB / 1.088 GB, free: 13.45 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 (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 9.56e-05/0.7841, allocations: 118.9 kB / 1.088 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.979e-05/0.7842, allocations: 7 kB / 1.088 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003835/0.7846, allocations: 125.6 kB / 1.088 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.7846, allocations: 1.062 kB / 1.088 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.7846, allocations: 0.75 kB / 1.088 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.7846, allocations: 4.875 kB / 1.088 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006238/0.7852, allocations: 388.4 kB / 1.089 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.7853, allocations: 4 kB / 1.089 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001415/0.7854, allocations: 24.47 kB / 1.089 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/0.7854, allocations: 5.688 kB / 1.089 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.691e-05/0.7854, allocations: 9.797 kB / 1.089 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.7854, allocations: 5.328 kB / 1.089 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.7854, allocations: 0 / 1.089 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005131/0.786, allocations: 256.8 kB / 1.089 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.672e-05/0.786, allocations: 82.8 kB / 1.089 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.056e-05/0.786, allocations: 6.797 kB / 1.089 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001157/0.7862, allocations: 6.281 kB / 1.089 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.845e-05/0.7862, allocations: 8.984 kB / 1.089 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.163e-05/0.7862, allocations: 9.188 kB / 1.089 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.199e-05/0.7863, allocations: 79.02 kB / 1.089 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7863, allocations: 0 / 1.089 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003009/0.7866, allocations: 39.95 kB / 1.089 GB, free: 12.52 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_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 (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.0002279/0.7868, allocations: 140.2 kB / 1.089 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003354/0.7872, allocations: 89.86 kB / 1.089 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.7872, allocations: 0 / 1.089 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000137/0.7873, allocations: 47 kB / 1.089 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003045/0.7876, allocations: 8.969 kB / 1.089 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007075/0.7883, allocations: 365.9 kB / 1.09 GB, free: 12.08 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003278/0.7887, allocations: 0.6951 MB / 1.09 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.199e-05/0.7887, allocations: 15.45 kB / 1.09 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of SimCode: time 2.41e-07/0.7887, allocations: 0 / 1.09 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of Templates: time 0.003455/0.7922, allocations: 1.316 MB / 1.092 GB, free: 11.26 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)