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/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_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/BuildingSystems 2.0.0-master/package.mo): time 0.7755/0.7755, allocations: 143.4 MB / 159.2 MB, free: 4.855 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.00143/0.00143, allocations: 188.5 kB / 191.9 MB, free: 5.695 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.496/1.496, allocations: 222.9 MB / 447.3 MB, free: 5.832 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.001008/0.001008, allocations: 107.2 kB / 0.517 GB, free: 3.699 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.0019/0.0019, allocations: 280.8 kB / 0.5973 GB, free: 49.35 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 80.27 kB / 0.6885 GB, free: 3.812 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3541/0.3555, allocations: 81.31 MB / 0.7679 GB, free: 27.64 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002095/0.3577, allocations: 1.315 MB / 0.7692 GB, free: 26.31 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007731/0.3585, allocations: 0.6327 MB / 0.7698 GB, free: 25.68 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.488e-05/0.3585, allocations: 0 / 0.7698 GB, free: 25.68 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 2.709e-05/0.3585, allocations: 0 / 0.7698 GB, free: 25.68 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 4.725e-05/0.3586, allocations: 3.938 kB / 0.7698 GB, free: 25.67 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004174/0.359, allocations: 131.6 kB / 0.77 GB, free: 25.54 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 4.695e-05/0.3591, allocations: 19.86 kB / 0.77 GB, free: 25.52 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.071e-05/0.3591, allocations: 4 kB / 0.77 GB, free: 25.52 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.195e-05/0.3592, allocations: 8 kB / 0.77 GB, free: 25.51 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.363e-05/0.3592, allocations: 7.938 kB / 0.77 GB, free: 25.5 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 1.238e-05/0.3592, allocations: 0 / 0.77 GB, free: 25.5 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003721/0.3596, allocations: 347.3 kB / 0.7703 GB, free: 25.16 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 1.038e-05/0.3596, allocations: 0 / 0.7703 GB, free: 25.16 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 2.16e-05/0.3596, allocations: 11.94 kB / 0.7703 GB, free: 25.15 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001988/0.3599, allocations: 150.2 kB / 0.7705 GB, free: 25.01 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3599, allocations: 4 kB / 0.7705 GB, free: 25 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3599, allocations: 4 kB / 0.7705 GB, free: 25 MB / 458.7 MB Notification: Performance of Transformations before backend: time 3.316e-06/0.3599, allocations: 0 / 0.7705 GB, free: 25 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.0002989/0.3602, allocations: 355.5 kB / 0.7708 GB, free: 24.6 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.103e-05/0.3602, allocations: 8.031 kB / 0.7708 GB, free: 24.59 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.16e-05/0.3603, allocations: 4.844 kB / 0.7709 GB, free: 24.59 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.02e-05/0.3603, allocations: 168.3 kB / 0.771 GB, free: 24.39 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.688e-06/0.3603, allocations: 384 / 0.771 GB, free: 24.39 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.923e-05/0.3604, allocations: 384 / 0.771 GB, free: 24.39 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.108e-05/0.3605, allocations: 46.23 kB / 0.7711 GB, free: 24.34 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.3605, allocations: 4.188 kB / 0.7711 GB, free: 24.33 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.3605, allocations: 3.938 kB / 0.7711 GB, free: 24.33 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.3605, allocations: 0 / 0.7711 GB, free: 24.33 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.45e-05/0.3605, allocations: 19.92 kB / 0.7711 GB, free: 24.31 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001157/0.3607, allocations: 153.7 kB / 0.7712 GB, free: 24.11 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001576/0.3608, allocations: 46.61 kB / 0.7713 GB, free: 24.05 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.734e-05/0.3609, allocations: 12.86 kB / 0.7713 GB, free: 24.04 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.3609, allocations: 12.08 kB / 0.7713 GB, free: 24.03 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.709e-05/0.3609, allocations: 30.56 kB / 0.7713 GB, free: 23.99 MB / 458.7 MB Notification: Performance of pre-optimization done (n=4): time 1.322e-06/0.3609, allocations: 0 / 0.7713 GB, free: 23.99 MB / 458.7 MB Notification: Performance of matching and sorting (n=6): time 0.000514/0.3614, allocations: 314.2 kB / 0.7716 GB, free: 23.63 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.095e-05/0.3615, allocations: 55.41 kB / 0.7717 GB, free: 23.56 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.133e-05/0.3615, allocations: 93.84 kB / 0.7718 GB, free: 23.46 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.935e-06/0.3615, allocations: 37.64 kB / 0.7718 GB, free: 23.42 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.308e-05/0.3616, allocations: 84.14 kB / 0.7719 GB, free: 23.33 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.114e-05/0.3616, allocations: 15.66 kB / 0.7719 GB, free: 23.32 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.767e-05/0.3616, allocations: 21.72 kB / 0.7719 GB, free: 23.29 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 3.539e-05/0.3617, allocations: 318.8 kB / 0.7722 GB, free: 22.97 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.16e-05/0.3617, allocations: 12 kB / 0.7722 GB, free: 22.96 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.828e-05/0.3617, allocations: 15.91 kB / 0.7723 GB, free: 22.94 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.389e-05/0.3618, allocations: 32.86 kB / 0.7723 GB, free: 22.91 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.32e-07/0.3618, allocations: 0 / 0.7723 GB, free: 22.91 MB / 458.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 7.48e-05/0.3618, allocations: 73.53 kB / 0.7724 GB, free: 22.83 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.05e-05/0.3619, allocations: 7.938 kB / 0.7724 GB, free: 22.82 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.3619, allocations: 0 / 0.7724 GB, free: 22.82 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.3619, allocations: 4 kB / 0.7724 GB, free: 22.82 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.472e-05/0.3619, allocations: 12 kB / 0.7724 GB, free: 22.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.488e-06/0.3619, allocations: 0 / 0.7724 GB, free: 22.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.502e-05/0.362, allocations: 0 / 0.7724 GB, free: 22.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.641e-06/0.362, allocations: 4 kB / 0.7724 GB, free: 22.8 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 5.246e-05/0.362, allocations: 113.8 kB / 0.7725 GB, free: 22.68 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.111e-05/0.3621, allocations: 11.94 kB / 0.7725 GB, free: 22.67 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001059/0.3622, allocations: 70.11 kB / 0.7726 GB, free: 22.59 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.3622, allocations: 0 / 0.7726 GB, free: 22.59 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.3622, allocations: 0 / 0.7726 GB, free: 22.59 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.3622, allocations: 0 / 0.7726 GB, free: 22.59 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000206/0.3624, allocations: 319.3 kB / 0.7729 GB, free: 22.22 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.3624, allocations: 0 / 0.7729 GB, free: 22.22 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.283e-05/0.3625, allocations: 8 kB / 0.7729 GB, free: 22.21 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.3625, allocations: 8.016 kB / 0.7729 GB, free: 22.21 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.811e-06/0.3625, allocations: 4 kB / 0.7729 GB, free: 22.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3625, allocations: 0 / 0.7729 GB, free: 22.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3625, allocations: 0 / 0.7729 GB, free: 22.2 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005312/0.3631, allocations: 1.032 MB / 0.7739 GB, free: 21.04 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.266e-05/0.3631, allocations: 81.02 kB / 0.774 GB, free: 20.94 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.935e-06/0.3631, allocations: 7.984 kB / 0.774 GB, free: 20.93 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.404e-05/0.3632, allocations: 0 / 0.774 GB, free: 20.93 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.308e-05/0.3632, allocations: 7.938 kB / 0.774 GB, free: 20.92 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.909e-06/0.3632, allocations: 4 kB / 0.774 GB, free: 20.92 MB / 458.7 MB Notification: Performance of sorting global known variables: time 1.692e-05/0.3632, allocations: 79.28 kB / 0.7741 GB, free: 20.84 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3632, allocations: 96 / 0.7741 GB, free: 20.84 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0002852/0.3635, allocations: 27.98 kB / 0.7741 GB, free: 20.81 MB / 458.7 MB 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.0001282/0.3637, allocations: 131.6 kB / 0.7742 GB, free: 20.68 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 8.14e-05/0.3637, allocations: 32.22 kB / 0.7743 GB, free: 20.64 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3638, allocations: 0 / 0.7743 GB, free: 20.64 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 2.165e-05/0.3638, allocations: 15.94 kB / 0.7743 GB, free: 20.63 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001924/0.364, allocations: 8 kB / 0.7743 GB, free: 20.62 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003439/0.3643, allocations: 313.1 kB / 0.7746 GB, free: 20.27 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.903e-05/0.3644, allocations: 0.6848 MB / 0.7752 GB, free: 19.56 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 2.988e-05/0.3645, allocations: 4 kB / 0.7752 GB, free: 19.55 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.334e-05/0.3645, allocations: 15.44 kB / 0.7753 GB, free: 19.54 MB / 458.7 MB Notification: Performance of SimCode: time 2e-07/0.3645, allocations: 0 / 0.7753 GB, free: 19.54 MB / 458.7 MB Notification: Performance of Templates: time 0.002257/0.3667, allocations: 0.6533 MB / 0.7759 GB, free: 18.92 MB / 458.7 MB 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)