Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.005449/0.005449, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001182/0.001182, allocations: 197.3 kB / 16.68 MB, free: 5.93 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.316/1.316, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002078/0.002078, allocations: 283.2 kB / 290.8 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9284/0.9284, allocations: 169.3 MB / 0.4983 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001752/0.001753, allocations: 91.86 kB / 0.6814 GB, free: 6.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4321/0.4339, allocations: 86.98 MB / 0.7664 GB, free: 3.938 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.001982/0.4359, allocations: 1.26 MB / 0.7676 GB, free: 2.668 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009274/0.4369, allocations: 0.6205 MB / 0.7682 GB, free: 2.047 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.037e-05/0.4369, allocations: 0 / 0.7682 GB, free: 2.047 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.724e-05/0.4369, allocations: 4 kB / 0.7682 GB, free: 2.043 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.794e-05/0.437, allocations: 11.92 kB / 0.7682 GB, free: 2.031 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004874/0.4375, allocations: 146.9 kB / 0.7684 GB, free: 1.891 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 5.275e-05/0.4375, allocations: 15.94 kB / 0.7684 GB, free: 1.875 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.499e-05/0.4376, allocations: 7.984 kB / 0.7684 GB, free: 1.867 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.255e-05/0.4376, allocations: 4 kB / 0.7684 GB, free: 1.863 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.271e-05/0.4377, allocations: 7.922 kB / 0.7684 GB, free: 1.855 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.088e-05/0.4377, allocations: 4 kB / 0.7684 GB, free: 1.852 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004573/0.4382, allocations: 343.3 kB / 0.7687 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.811e-05/0.4382, allocations: 11.98 kB / 0.7688 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.011e-05/0.4382, allocations: 7.922 kB / 0.7688 GB, free: 1.496 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002242/0.4384, allocations: 145.9 kB / 0.7689 GB, free: 1.359 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.4384, allocations: 0 / 0.7689 GB, free: 1.359 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.352e-06/0.4385, allocations: 0 / 0.7689 GB, free: 1.359 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.618e-06/0.4385, allocations: 0 / 0.7689 GB, free: 1.359 MB / 0.5294 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.0003626/0.4388, allocations: 363.3 kB / 0.7692 GB, free: 0.9531 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.098e-05/0.4389, allocations: 8.031 kB / 0.7693 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.056e-05/0.4389, allocations: 4.938 kB / 0.7693 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001036/0.439, allocations: 164.4 kB / 0.7694 GB, free: 0.7422 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.285e-06/0.439, allocations: 4.375 kB / 0.7694 GB, free: 0.7383 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.025e-05/0.439, allocations: 4.375 kB / 0.7694 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.104e-05/0.4391, allocations: 46.17 kB / 0.7695 GB, free: 0.6836 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.852e-06/0.4392, allocations: 192 / 0.7695 GB, free: 0.6836 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.4392, allocations: 7.938 kB / 0.7695 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.4392, allocations: 0 / 0.7695 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.65e-05/0.4392, allocations: 7.984 kB / 0.7695 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001468/0.4394, allocations: 161.7 kB / 0.7696 GB, free: 472 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001532/0.4395, allocations: 42.56 kB / 0.7697 GB, free: 420 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.005e-05/0.4396, allocations: 16.86 kB / 0.7697 GB, free: 400 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.58e-05/0.4396, allocations: 3.938 kB / 0.7697 GB, free: 396 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.99e-05/0.4396, allocations: 30.56 kB / 0.7697 GB, free: 356 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=4): time 1.062e-06/0.4396, allocations: 3.938 kB / 0.7697 GB, free: 352 kB / 0.5294 GB Notification: Performance of matching and sorting (n=6): time 0.0005966/0.4402, allocations: 326.1 kB / 0.77 GB, free: 15.97 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.057e-05/0.4403, allocations: 51.41 kB / 0.7701 GB, free: 15.91 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.135e-05/0.4403, allocations: 97.86 kB / 0.7702 GB, free: 15.8 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.456e-05/0.4404, allocations: 25.7 kB / 0.7702 GB, free: 15.77 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 2.727e-05/0.4404, allocations: 80.14 kB / 0.7703 GB, free: 15.69 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.804e-05/0.4404, allocations: 23.73 kB / 0.7703 GB, free: 15.67 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.169e-05/0.4405, allocations: 17.72 kB / 0.7703 GB, free: 15.64 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.97e-05/0.4406, allocations: 314.8 kB / 0.7706 GB, free: 15.33 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.454e-05/0.4406, allocations: 16 kB / 0.7706 GB, free: 15.31 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.133e-05/0.4406, allocations: 12 kB / 0.7707 GB, free: 15.3 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.654e-05/0.4407, allocations: 36.78 kB / 0.7707 GB, free: 15.26 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.42e-07/0.4407, allocations: 0 / 0.7707 GB, free: 15.26 MB / 0.545 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.279e-05/0.4408, allocations: 65.66 kB / 0.7707 GB, free: 15.19 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.4408, allocations: 11.94 kB / 0.7708 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.4408, allocations: 4 kB / 0.7708 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.4408, allocations: 3.984 kB / 0.7708 GB, free: 15.17 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.775e-05/0.4409, allocations: 8 kB / 0.7708 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.4409, allocations: 4.234 kB / 0.7708 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.647e-05/0.4409, allocations: 4 kB / 0.7708 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.649e-06/0.4409, allocations: 0 / 0.7708 GB, free: 15.16 MB / 0.545 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.104e-05/0.441, allocations: 120.2 kB / 0.7709 GB, free: 15.03 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.147e-05/0.441, allocations: 3.938 kB / 0.7709 GB, free: 15.03 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001238/0.4412, allocations: 73.58 kB / 0.771 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.4412, allocations: 4 kB / 0.771 GB, free: 14.94 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.4412, allocations: 0.5156 kB / 0.771 GB, free: 14.94 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.4412, allocations: 0 / 0.771 GB, free: 14.94 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002806/0.4415, allocations: 315.4 kB / 0.7713 GB, free: 14.57 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.4415, allocations: 0 / 0.7713 GB, free: 14.57 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.181e-05/0.4415, allocations: 19.98 kB / 0.7713 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.4416, allocations: 0 / 0.7713 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.102e-06/0.4416, allocations: 0 / 0.7713 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.4416, allocations: 0 / 0.7713 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.808e-06/0.4416, allocations: 7.984 kB / 0.7713 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001663/0.4417, allocations: 192.2 kB / 0.7715 GB, free: 14.34 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.285e-05/0.4418, allocations: 81.14 kB / 0.7716 GB, free: 14.24 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.164e-05/0.4418, allocations: 3.938 kB / 0.7716 GB, free: 14.24 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.789e-05/0.4419, allocations: 192 / 0.7716 GB, free: 14.24 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.153e-05/0.4419, allocations: 11.98 kB / 0.7716 GB, free: 14.23 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.741e-06/0.4419, allocations: 4 kB / 0.7716 GB, free: 14.22 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.798e-05/0.442, allocations: 79.28 kB / 0.7717 GB, free: 14.14 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.442, allocations: 0 / 0.7717 GB, free: 14.14 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002379/0.4422, allocations: 24.06 kB / 0.7717 GB, free: 14.12 MB / 0.545 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.0001614/0.4424, allocations: 127.2 kB / 0.7718 GB, free: 13.99 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001031/0.4425, allocations: 31.94 kB / 0.7718 GB, free: 13.96 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.4425, allocations: 0 / 0.7718 GB, free: 13.96 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.772e-05/0.4425, allocations: 15.98 kB / 0.7718 GB, free: 13.94 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002178/0.4428, allocations: 16.48 kB / 0.7719 GB, free: 13.93 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003664/0.4431, allocations: 196.4 kB / 0.7721 GB, free: 13.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002256/0.4434, allocations: 0.684 MB / 0.7727 GB, free: 13 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.897e-05/0.4434, allocations: 8 kB / 0.7727 GB, free: 12.99 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.637e-05/0.4434, allocations: 15.38 kB / 0.7727 GB, free: 12.98 MB / 0.545 GB Notification: Performance of SimCode: time 2.4e-07/0.4434, allocations: 0 / 0.7727 GB, free: 12.98 MB / 0.545 GB Notification: Performance of Templates: time 0.002658/0.4461, allocations: 0.6297 MB / 0.7734 GB, free: 12.38 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)