Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8042/0.8042, allocations: 143.4 MB / 159.2 MB, free: 4.906 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 187.7 kB / 191.9 MB, free: 5.727 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.438/1.438, allocations: 222.9 MB / 447.3 MB, free: 5.891 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 118.6 kB / 0.517 GB, free: 3.742 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001934/0.001934, allocations: 291.2 kB / 0.5973 GB, free: 49.39 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001376, allocations: 83.89 kB / 0.6885 GB, free: 3.852 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.33/0.3314, allocations: 81.27 MB / 0.7679 GB, free: 27.7 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002051/0.3335, allocations: 1.348 MB / 0.7692 GB, free: 26.34 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007787/0.3343, allocations: 0.6327 MB / 0.7699 GB, free: 25.71 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.639e-05/0.3343, allocations: 0 / 0.7699 GB, free: 25.71 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 1.893e-05/0.3343, allocations: 0 / 0.7699 GB, free: 25.71 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 4.304e-05/0.3344, allocations: 7.984 kB / 0.7699 GB, free: 25.7 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004423/0.3348, allocations: 119.6 kB / 0.77 GB, free: 25.59 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 4.717e-05/0.3349, allocations: 27.8 kB / 0.77 GB, free: 25.56 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.414e-05/0.3349, allocations: 4 kB / 0.77 GB, free: 25.55 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.239e-05/0.335, allocations: 8 kB / 0.77 GB, free: 25.55 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.819e-05/0.335, allocations: 11.91 kB / 0.77 GB, free: 25.54 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.135e-05/0.3351, allocations: 4 kB / 0.77 GB, free: 25.53 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003677/0.3354, allocations: 339.3 kB / 0.7704 GB, free: 25.2 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 1.074e-05/0.3354, allocations: 4 kB / 0.7704 GB, free: 25.2 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 2.01e-05/0.3355, allocations: 11.92 kB / 0.7704 GB, free: 25.18 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001968/0.3357, allocations: 134.4 kB / 0.7705 GB, free: 25.05 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3357, allocations: 15.86 kB / 0.7705 GB, free: 25.04 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.3357, allocations: 3.938 kB / 0.7705 GB, free: 25.04 MB / 458.7 MB Notification: Performance of Transformations before backend: time 3.376e-06/0.3357, allocations: 4 kB / 0.7705 GB, free: 25.03 MB / 458.7 MB 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.0003223/0.336, allocations: 351.5 kB / 0.7709 GB, free: 24.64 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.013e-05/0.3361, allocations: 8.031 kB / 0.7709 GB, free: 24.63 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.354e-05/0.3361, allocations: 4.844 kB / 0.7709 GB, free: 24.62 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.666e-05/0.3362, allocations: 172.3 kB / 0.771 GB, free: 24.42 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.029e-05/0.3362, allocations: 4.375 kB / 0.771 GB, free: 24.41 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.899e-05/0.3362, allocations: 384 / 0.771 GB, free: 24.41 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.599e-05/0.3363, allocations: 46.23 kB / 0.7711 GB, free: 24.36 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.3363, allocations: 192 / 0.7711 GB, free: 24.36 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.3363, allocations: 7.938 kB / 0.7711 GB, free: 24.36 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.3363, allocations: 0 / 0.7711 GB, free: 24.36 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.391e-05/0.3364, allocations: 11.94 kB / 0.7711 GB, free: 24.34 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001139/0.3365, allocations: 157.7 kB / 0.7712 GB, free: 24.14 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001527/0.3367, allocations: 42.61 kB / 0.7713 GB, free: 24.09 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.65e-05/0.3367, allocations: 16.94 kB / 0.7713 GB, free: 24.07 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.087e-05/0.3367, allocations: 4 kB / 0.7713 GB, free: 24.07 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.243e-05/0.3367, allocations: 34.56 kB / 0.7713 GB, free: 24.02 MB / 458.7 MB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.3367, allocations: 0 / 0.7713 GB, free: 24.02 MB / 458.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004632/0.3372, allocations: 306.2 kB / 0.7716 GB, free: 23.67 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.871e-05/0.3372, allocations: 55.34 kB / 0.7717 GB, free: 23.61 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.016e-05/0.3373, allocations: 101.8 kB / 0.7718 GB, free: 23.5 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.364e-06/0.3373, allocations: 29.7 kB / 0.7718 GB, free: 23.46 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.509e-05/0.3373, allocations: 84.14 kB / 0.7719 GB, free: 23.38 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.09e-05/0.3373, allocations: 23.59 kB / 0.7719 GB, free: 23.35 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.776e-05/0.3374, allocations: 25.7 kB / 0.7719 GB, free: 23.32 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 3.526e-05/0.3374, allocations: 310.8 kB / 0.7722 GB, free: 23.01 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.145e-05/0.3374, allocations: 12 kB / 0.7722 GB, free: 23 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.785e-05/0.3375, allocations: 11.98 kB / 0.7723 GB, free: 22.98 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.401e-05/0.3375, allocations: 32.8 kB / 0.7723 GB, free: 22.95 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.02e-07/0.3375, allocations: 0 / 0.7723 GB, free: 22.95 MB / 458.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 7.494e-05/0.3376, allocations: 73.53 kB / 0.7724 GB, free: 22.87 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.114e-05/0.3376, allocations: 11.94 kB / 0.7724 GB, free: 22.86 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.3376, allocations: 0 / 0.7724 GB, free: 22.86 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.3377, allocations: 4 kB / 0.7724 GB, free: 22.86 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.502e-05/0.3377, allocations: 12.06 kB / 0.7724 GB, free: 22.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.3377, allocations: 0 / 0.7724 GB, free: 22.84 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.69e-05/0.3377, allocations: 3.984 kB / 0.7724 GB, free: 22.84 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.53e-06/0.3377, allocations: 4 kB / 0.7724 GB, free: 22.84 MB / 458.7 MB 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 4.296e-05/0.3378, allocations: 109.8 kB / 0.7725 GB, free: 22.72 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.085e-05/0.3378, allocations: 7.938 kB / 0.7725 GB, free: 22.71 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001014/0.3379, allocations: 74.11 kB / 0.7726 GB, free: 22.63 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.3379, allocations: 0 / 0.7726 GB, free: 22.63 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.3379, allocations: 0 / 0.7726 GB, free: 22.63 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.3379, allocations: 3.984 kB / 0.7726 GB, free: 22.63 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000202/0.3381, allocations: 315.4 kB / 0.7729 GB, free: 22.26 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.3382, allocations: 3.938 kB / 0.7729 GB, free: 22.26 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.32e-05/0.3382, allocations: 8 kB / 0.7729 GB, free: 22.25 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.3382, allocations: 3.984 kB / 0.7729 GB, free: 22.25 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.234e-06/0.3382, allocations: 12.03 kB / 0.7729 GB, free: 22.23 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.3382, allocations: 240 / 0.7729 GB, free: 22.23 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3383, allocations: 3.984 kB / 0.7729 GB, free: 22.23 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005107/0.3388, allocations: 1.024 MB / 0.7739 GB, free: 21.07 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.251e-05/0.3388, allocations: 85 kB / 0.774 GB, free: 20.97 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.802e-06/0.3388, allocations: 0 / 0.774 GB, free: 20.97 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.575e-05/0.3389, allocations: 8 kB / 0.774 GB, free: 20.96 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.275e-05/0.3389, allocations: 3.938 kB / 0.774 GB, free: 20.96 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.1e-06/0.3389, allocations: 4 kB / 0.774 GB, free: 20.95 MB / 458.7 MB Notification: Performance of sorting global known variables: time 1.707e-05/0.3389, allocations: 83.27 kB / 0.7741 GB, free: 20.87 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3389, allocations: 0 / 0.7741 GB, free: 20.87 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003133/0.3393, allocations: 24 kB / 0.7741 GB, free: 20.85 MB / 458.7 MB 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.000129/0.3394, allocations: 127.7 kB / 0.7742 GB, free: 20.71 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 8.452e-05/0.3395, allocations: 35.92 kB / 0.7743 GB, free: 20.68 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.95e-06/0.3395, allocations: 0 / 0.7743 GB, free: 20.68 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 2.299e-05/0.3395, allocations: 19.94 kB / 0.7743 GB, free: 20.66 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001991/0.3397, allocations: 5.094 kB / 0.7743 GB, free: 20.66 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003474/0.3401, allocations: 316.9 kB / 0.7746 GB, free: 20.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.594e-05/0.3402, allocations: 0.6848 MB / 0.7753 GB, free: 19.59 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 3.529e-05/0.3402, allocations: 4 kB / 0.7753 GB, free: 19.59 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.433e-05/0.3402, allocations: 15.42 kB / 0.7753 GB, free: 19.57 MB / 458.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3402, allocations: 0 / 0.7753 GB, free: 19.57 MB / 458.7 MB Notification: Performance of Templates: time 0.002276/0.3425, allocations: 0.6739 MB / 0.7759 GB, free: 18.95 MB / 458.7 MB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)