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.001135/0.001135, allocations: 108.3 kB / 16.41 MB, free: 6.492 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.001048/0.001048, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.263/1.263, allocations: 222.9 MB / 241.1 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002055/0.002055, allocations: 289.6 kB / 291.5 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.8927/0.8927, allocations: 169.2 MB / 0.499 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001998/0.001998, allocations: 91.86 kB / 0.6821 GB, free: 6.961 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5061/0.5081, allocations: 86.98 MB / 0.7671 GB, free: 3.926 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002161/0.5103, allocations: 1.261 MB / 0.7683 GB, free: 2.656 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009266/0.5112, allocations: 0.6089 MB / 0.7689 GB, free: 2.047 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.616e-05/0.5113, allocations: 3.938 kB / 0.7689 GB, free: 2.043 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.677e-05/0.5113, allocations: 0 / 0.7689 GB, free: 2.043 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 5.337e-05/0.5114, allocations: 15.92 kB / 0.7689 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005731/0.5119, allocations: 147.3 kB / 0.769 GB, free: 1.883 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 5.811e-05/0.512, allocations: 15.94 kB / 0.7691 GB, free: 1.867 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.068e-05/0.5121, allocations: 11.97 kB / 0.7691 GB, free: 1.855 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.512e-05/0.5121, allocations: 4 kB / 0.7691 GB, free: 1.852 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.542e-05/0.5121, allocations: 3.938 kB / 0.7691 GB, free: 1.848 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.299e-05/0.5122, allocations: 4 kB / 0.7691 GB, free: 1.844 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004912/0.5127, allocations: 347.2 kB / 0.7694 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.44e-05/0.5127, allocations: 12 kB / 0.7694 GB, free: 1.492 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.187e-05/0.5127, allocations: 7.922 kB / 0.7694 GB, free: 1.484 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002469/0.513, allocations: 145.9 kB / 0.7696 GB, free: 1.348 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.513, allocations: 0 / 0.7696 GB, free: 1.348 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.893e-06/0.513, allocations: 0 / 0.7696 GB, free: 1.348 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.501e-06/0.513, allocations: 0 / 0.7696 GB, free: 1.348 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.0003882/0.5134, allocations: 363.3 kB / 0.7699 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.232e-05/0.5134, allocations: 8.031 kB / 0.7699 GB, free: 0.9336 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.223e-05/0.5135, allocations: 4.938 kB / 0.7699 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.722e-05/0.5136, allocations: 164.4 kB / 0.7701 GB, free: 0.7305 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.998e-06/0.5136, allocations: 4.375 kB / 0.7701 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.23e-05/0.5136, allocations: 8.375 kB / 0.7701 GB, free: 0.7188 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.637e-05/0.5137, allocations: 38.25 kB / 0.7701 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-06/0.5137, allocations: 192 / 0.7701 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.5137, allocations: 7.938 kB / 0.7701 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.5137, allocations: 0 / 0.7701 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.99e-05/0.5138, allocations: 15.92 kB / 0.7702 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001502/0.5139, allocations: 161.7 kB / 0.7703 GB, free: 456 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001682/0.5141, allocations: 42.56 kB / 0.7703 GB, free: 404 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.711e-05/0.5142, allocations: 20.84 kB / 0.7704 GB, free: 380 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.566e-05/0.5142, allocations: 0 / 0.7704 GB, free: 380 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.796e-05/0.5142, allocations: 30.56 kB / 0.7704 GB, free: 340 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=4): time 7.92e-07/0.5142, allocations: 0 / 0.7704 GB, free: 340 kB / 0.5294 GB Notification: Performance of matching and sorting (n=6): time 0.0005916/0.5148, allocations: 318.2 kB / 0.7707 GB, free: 15.97 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.299e-05/0.5149, allocations: 63.28 kB / 0.7708 GB, free: 15.89 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.613e-05/0.5149, allocations: 97.86 kB / 0.7709 GB, free: 15.79 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.41e-05/0.5149, allocations: 25.7 kB / 0.7709 GB, free: 15.76 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 2.524e-05/0.515, allocations: 80.14 kB / 0.771 GB, free: 15.68 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.154e-05/0.515, allocations: 23.73 kB / 0.771 GB, free: 15.65 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.324e-05/0.515, allocations: 17.72 kB / 0.771 GB, free: 15.63 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.786e-05/0.5151, allocations: 314.8 kB / 0.7713 GB, free: 15.31 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.49e-05/0.5152, allocations: 16 kB / 0.7713 GB, free: 15.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.074e-05/0.5152, allocations: 12 kB / 0.7713 GB, free: 15.29 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.268e-05/0.5152, allocations: 32.84 kB / 0.7713 GB, free: 15.25 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.91e-07/0.5153, allocations: 0 / 0.7713 GB, free: 15.25 MB / 0.545 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.752e-05/0.5154, allocations: 73.67 kB / 0.7714 GB, free: 15.17 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.5154, allocations: 18.58 kB / 0.7714 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.5154, allocations: 0 / 0.7714 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.044e-05/0.5154, allocations: 0 / 0.7714 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.64e-05/0.5155, allocations: 8 kB / 0.7714 GB, free: 15.15 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.5155, allocations: 0 / 0.7714 GB, free: 15.15 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.778e-05/0.5155, allocations: 8 kB / 0.7715 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.609e-06/0.5155, allocations: 0 / 0.7715 GB, free: 15.14 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 6.648e-05/0.5156, allocations: 113.8 kB / 0.7716 GB, free: 15.02 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.2e-05/0.5156, allocations: 3.938 kB / 0.7716 GB, free: 15.02 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001273/0.5157, allocations: 73.58 kB / 0.7716 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.5157, allocations: 4 kB / 0.7716 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.5157, allocations: 0 / 0.7716 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.5157, allocations: 0 / 0.7716 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002741/0.516, allocations: 315.4 kB / 0.7719 GB, free: 14.56 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.516, allocations: 0 / 0.7719 GB, free: 14.56 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.916e-05/0.5161, allocations: 16.17 kB / 0.772 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.5161, allocations: 0 / 0.772 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.5161, allocations: 8 kB / 0.772 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.5161, allocations: 0 / 0.772 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.5161, allocations: 7.938 kB / 0.772 GB, free: 14.53 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001582/0.5163, allocations: 184.3 kB / 0.7721 GB, free: 14.33 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.2e-05/0.5163, allocations: 77.11 kB / 0.7722 GB, free: 14.24 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.323e-05/0.5164, allocations: 4.031 kB / 0.7722 GB, free: 14.23 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.788e-05/0.5164, allocations: 3.938 kB / 0.7722 GB, free: 14.23 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.828e-05/0.5165, allocations: 11.92 kB / 0.7722 GB, free: 14.22 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.041e-06/0.5165, allocations: 4 kB / 0.7722 GB, free: 14.21 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.06e-05/0.5165, allocations: 79.8 kB / 0.7723 GB, free: 14.14 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.9e-07/0.5165, allocations: 0 / 0.7723 GB, free: 14.14 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002532/0.5168, allocations: 20 kB / 0.7723 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.0001639/0.5169, allocations: 135.2 kB / 0.7725 GB, free: 13.98 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 9.873e-05/0.517, allocations: 31.94 kB / 0.7725 GB, free: 13.95 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.768e-06/0.5171, allocations: 0 / 0.7725 GB, free: 13.95 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.549e-05/0.5171, allocations: 15.98 kB / 0.7725 GB, free: 13.93 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002104/0.5173, allocations: 11.94 kB / 0.7725 GB, free: 13.92 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003856/0.5177, allocations: 222.2 kB / 0.7727 GB, free: 13.66 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002174/0.5179, allocations: 0.6807 MB / 0.7734 GB, free: 12.96 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.974e-05/0.5179, allocations: 11.44 kB / 0.7734 GB, free: 12.95 MB / 0.545 GB Notification: Performance of SimCode: time 2.11e-07/0.518, allocations: 0 / 0.7734 GB, free: 12.95 MB / 0.545 GB Notification: Performance of Templates: time 0.002069/0.52, allocations: 0.8025 MB / 0.7742 GB, free: 12.15 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)