Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001002/0.001002, allocations: 106.5 kB / 16.41 MB, free: 6.512 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.000997/0.000997, 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.256/1.256, allocations: 222.9 MB / 241 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.002039/0.002039, allocations: 295.8 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.889/0.889, allocations: 169.2 MB / 0.499 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001817/0.001817, allocations: 95.84 kB / 0.6821 GB, free: 6.977 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4264/0.4283, allocations: 86.97 MB / 0.767 GB, free: 3.934 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002419/0.4307, allocations: 1.283 MB / 0.7683 GB, free: 2.645 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001048/0.4318, allocations: 0.6167 MB / 0.7689 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.712e-05/0.4319, allocations: 0 / 0.7689 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.6e-05/0.4319, allocations: 0 / 0.7689 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.483e-05/0.4319, allocations: 3.938 kB / 0.7689 GB, free: 2.023 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006365/0.4326, allocations: 163.3 kB / 0.7691 GB, free: 1.863 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.039e-05/0.4327, allocations: 23.92 kB / 0.7691 GB, free: 1.84 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.443e-05/0.4327, allocations: 8 kB / 0.7691 GB, free: 1.832 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 2.471e-05/0.4327, allocations: 7.938 kB / 0.7691 GB, free: 1.824 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 6.354e-05/0.4328, allocations: 11.98 kB / 0.7691 GB, free: 1.812 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.296e-05/0.4328, allocations: 4 kB / 0.7691 GB, free: 1.809 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005361/0.4334, allocations: 347.3 kB / 0.7694 GB, free: 1.469 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.775e-05/0.4334, allocations: 7.938 kB / 0.7695 GB, free: 1.461 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.316e-05/0.4334, allocations: 15.91 kB / 0.7695 GB, free: 1.445 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002871/0.4337, allocations: 153.9 kB / 0.7696 GB, free: 1.301 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.4337, allocations: 0 / 0.7696 GB, free: 1.301 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.383e-06/0.4338, allocations: 0 / 0.7696 GB, free: 1.301 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.4338, allocations: 0 / 0.7696 GB, free: 1.301 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004365/0.4342, allocations: 375.3 kB / 0.77 GB, free: 0.8828 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.4342, allocations: 8.031 kB / 0.77 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.278e-05/0.4343, allocations: 4.938 kB / 0.77 GB, free: 0.8711 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001137/0.4344, allocations: 160.4 kB / 0.7701 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.167e-05/0.4344, allocations: 8.375 kB / 0.7701 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.578e-05/0.4345, allocations: 4.375 kB / 0.7702 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001249/0.4346, allocations: 46.19 kB / 0.7702 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.4346, allocations: 192 / 0.7702 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.143e-05/0.4346, allocations: 19.92 kB / 0.7702 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.4346, allocations: 0 / 0.7702 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.257e-05/0.4347, allocations: 19.98 kB / 0.7702 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001756/0.4349, allocations: 169.6 kB / 0.7704 GB, free: 368 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 9.848e-05/0.435, allocations: 54.56 kB / 0.7704 GB, free: 304 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.42e-05/0.435, allocations: 36.78 kB / 0.7705 GB, free: 264 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.018e-05/0.4351, allocations: 0 / 0.7705 GB, free: 264 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/0.4351, allocations: 38.56 kB / 0.7705 GB, free: 216 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=7): time 7.82e-07/0.4351, allocations: 0 / 0.7705 GB, free: 216 kB / 0.5294 GB Notification: Performance of matching and sorting (n=11): time 0.001126/0.4362, allocations: 0.5877 MB / 0.7711 GB, free: 15.53 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.862e-05/0.4363, allocations: 51.41 kB / 0.7711 GB, free: 15.47 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.385e-05/0.4363, allocations: 97.86 kB / 0.7712 GB, free: 15.36 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.788e-05/0.4364, allocations: 29.7 kB / 0.7713 GB, free: 15.33 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 3.602e-05/0.4364, allocations: 80.14 kB / 0.7713 GB, free: 15.25 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.851e-05/0.4365, allocations: 35.55 kB / 0.7714 GB, free: 15.21 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.18e-05/0.4365, allocations: 37.64 kB / 0.7714 GB, free: 15.17 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001034/0.4366, allocations: 314.8 kB / 0.7717 GB, free: 14.85 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.1e-05/0.4367, allocations: 19.98 kB / 0.7717 GB, free: 14.83 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.871e-05/0.4367, allocations: 23.48 kB / 0.7718 GB, free: 14.81 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.879e-05/0.4368, allocations: 64.86 kB / 0.7718 GB, free: 14.75 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.4368, allocations: 0 / 0.7718 GB, free: 14.75 MB / 0.545 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001426/0.437, allocations: 105.5 kB / 0.7719 GB, free: 14.64 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.437, allocations: 4 kB / 0.7719 GB, free: 14.63 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.437, allocations: 3.984 kB / 0.7719 GB, free: 14.63 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.437, allocations: 0 / 0.7719 GB, free: 14.63 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.932e-05/0.4371, allocations: 20 kB / 0.7719 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.4371, allocations: 0 / 0.7719 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.267e-05/0.4372, allocations: 0 / 0.7719 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.11e-05/0.4372, allocations: 8 kB / 0.7719 GB, free: 14.6 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 (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 8.857e-05/0.4373, allocations: 128.2 kB / 0.7721 GB, free: 14.47 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.599e-05/0.4373, allocations: 3.938 kB / 0.7721 GB, free: 14.46 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001799/0.4375, allocations: 101.6 kB / 0.7722 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.4375, allocations: 0 / 0.7722 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.4375, allocations: 0 / 0.7722 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.4375, allocations: 7.969 kB / 0.7722 GB, free: 14.35 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003865/0.4379, allocations: 358.4 kB / 0.7725 GB, free: 13.94 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.4379, allocations: 0 / 0.7725 GB, free: 13.94 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001004/0.438, allocations: 23.98 kB / 0.7725 GB, free: 13.92 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.438, allocations: 4 kB / 0.7725 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.227e-06/0.438, allocations: 0 / 0.7725 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.438, allocations: 0 / 0.7725 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.438, allocations: 0 / 0.7725 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002433/0.4383, allocations: 231.5 kB / 0.7728 GB, free: 13.67 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.251e-05/0.4383, allocations: 81.02 kB / 0.7728 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.403e-05/0.4384, allocations: 0 / 0.7728 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.577e-05/0.4385, allocations: 12.09 kB / 0.7729 GB, free: 13.56 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.163e-05/0.4385, allocations: 7.984 kB / 0.7729 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-06/0.4385, allocations: 0 / 0.7729 GB, free: 13.55 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.137e-05/0.4385, allocations: 79.28 kB / 0.7729 GB, free: 13.48 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4385, allocations: 0 / 0.7729 GB, free: 13.48 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002678/0.4388, allocations: 35.98 kB / 0.773 GB, free: 13.44 MB / 0.545 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.0002171/0.439, allocations: 139.2 kB / 0.7731 GB, free: 13.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001495/0.4392, allocations: 75.92 kB / 0.7732 GB, free: 13.22 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4392, allocations: 0 / 0.7732 GB, free: 13.22 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 4.62e-05/0.4393, allocations: 35.94 kB / 0.7732 GB, free: 13.19 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002177/0.4395, allocations: 13.61 kB / 0.7732 GB, free: 13.18 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005379/0.44, allocations: 298.5 kB / 0.7735 GB, free: 12.85 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002619/0.4403, allocations: 0.6903 MB / 0.7742 GB, free: 12.14 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.948e-05/0.4403, allocations: 15.44 kB / 0.7742 GB, free: 12.12 MB / 0.545 GB Notification: Performance of SimCode: time 4.41e-07/0.4403, allocations: 0 / 0.7742 GB, free: 12.12 MB / 0.545 GB Notification: Performance of Templates: time 0.002773/0.4431, allocations: 1.124 MB / 0.7753 GB, free: 11.01 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)