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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 113.3 kB / 16.41 MB, free: 6.457 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.001361/0.001361, allocations: 185.5 kB / 17.34 MB, free: 5.723 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.308/1.308, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002152/0.002152, allocations: 288.4 kB / 291.5 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8888/0.8888, allocations: 169.2 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0017/0.0017, allocations: 95.84 kB / 0.6821 GB, free: 6.941 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3984/0.4001, allocations: 86.98 MB / 0.7671 GB, free: 3.859 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002006/0.4022, allocations: 1.272 MB / 0.7683 GB, free: 2.582 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0008925/0.4031, allocations: 0.6167 MB / 0.7689 GB, free: 1.965 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.027e-05/0.4031, allocations: 0 / 0.7689 GB, free: 1.965 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.789e-05/0.4031, allocations: 4 kB / 0.7689 GB, free: 1.961 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.108e-05/0.4032, allocations: 3.938 kB / 0.7689 GB, free: 1.957 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004678/0.4036, allocations: 147.3 kB / 0.769 GB, free: 1.812 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 5.672e-05/0.4037, allocations: 23.91 kB / 0.7691 GB, free: 1.789 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.072e-05/0.4037, allocations: 0 / 0.7691 GB, free: 1.789 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.36e-05/0.4038, allocations: 8 kB / 0.7691 GB, free: 1.781 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.504e-05/0.4038, allocations: 11.92 kB / 0.7691 GB, free: 1.77 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.163e-05/0.4038, allocations: 4 kB / 0.7691 GB, free: 1.766 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004669/0.4043, allocations: 347.3 kB / 0.7694 GB, free: 1.426 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.03e-05/0.4043, allocations: 4 kB / 0.7694 GB, free: 1.422 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.177e-05/0.4044, allocations: 15.88 kB / 0.7694 GB, free: 1.406 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002259/0.4046, allocations: 149.9 kB / 0.7696 GB, free: 1.266 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.4046, allocations: 0 / 0.7696 GB, free: 1.266 MB / 0.5294 GB Notification: Performance of FrontEnd: time 8.91e-07/0.4046, allocations: 0 / 0.7696 GB, free: 1.266 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.1e-06/0.4046, allocations: 0 / 0.7696 GB, free: 1.266 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.0003555/0.405, allocations: 362.1 kB / 0.7699 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 2.871e-05/0.405, allocations: 8.031 kB / 0.7699 GB, free: 0.8555 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.768e-05/0.405, allocations: 4.938 kB / 0.7699 GB, free: 0.8516 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001006/0.4052, allocations: 168.4 kB / 0.7701 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.114e-06/0.4052, allocations: 384 / 0.7701 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.053e-05/0.4052, allocations: 4.375 kB / 0.7701 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.906e-05/0.4053, allocations: 42.19 kB / 0.7701 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.4053, allocations: 4.188 kB / 0.7701 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.119e-05/0.4053, allocations: 3.938 kB / 0.7702 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.406e-06/0.4053, allocations: 0 / 0.7702 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.286e-05/0.4054, allocations: 8 kB / 0.7702 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001453/0.4055, allocations: 157.7 kB / 0.7703 GB, free: 388 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001573/0.4057, allocations: 46.61 kB / 0.7704 GB, free: 332 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.321e-05/0.4057, allocations: 24.92 kB / 0.7704 GB, free: 304 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.435e-05/0.4057, allocations: 0 / 0.7704 GB, free: 304 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.684e-05/0.4058, allocations: 38.44 kB / 0.7704 GB, free: 256 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=4): time 8.12e-07/0.4058, allocations: 0 / 0.7704 GB, free: 256 kB / 0.5294 GB Notification: Performance of matching and sorting (n=6): time 0.0005398/0.4063, allocations: 310.1 kB / 0.7707 GB, free: 15.89 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.665e-05/0.4064, allocations: 51.41 kB / 0.7708 GB, free: 15.83 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.31e-05/0.4064, allocations: 105.8 kB / 0.7709 GB, free: 15.72 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.235e-05/0.4064, allocations: 25.7 kB / 0.7709 GB, free: 15.69 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 2.775e-05/0.4065, allocations: 80.14 kB / 0.771 GB, free: 15.61 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.518e-05/0.4065, allocations: 19.75 kB / 0.771 GB, free: 15.59 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.994e-05/0.4066, allocations: 21.7 kB / 0.771 GB, free: 15.56 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.536e-05/0.4067, allocations: 314.8 kB / 0.7713 GB, free: 15.24 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.382e-05/0.4067, allocations: 15.98 kB / 0.7713 GB, free: 15.23 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.045e-05/0.4067, allocations: 12 kB / 0.7713 GB, free: 15.21 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.172e-05/0.4068, allocations: 36.84 kB / 0.7714 GB, free: 15.18 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.4068, allocations: 0 / 0.7714 GB, free: 15.18 MB / 0.545 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.588e-05/0.4069, allocations: 69.59 kB / 0.7714 GB, free: 15.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.4069, allocations: 11.94 kB / 0.7714 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.4069, allocations: 0 / 0.7714 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.4069, allocations: 0 / 0.7714 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.79e-05/0.407, allocations: 11.98 kB / 0.7715 GB, free: 15.08 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.407, allocations: 4 kB / 0.7715 GB, free: 15.07 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.678e-05/0.407, allocations: 4 kB / 0.7715 GB, free: 15.07 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.751e-06/0.407, allocations: 4 kB / 0.7715 GB, free: 15.07 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 5.956e-05/0.4071, allocations: 112.2 kB / 0.7716 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.097e-05/0.4071, allocations: 3.938 kB / 0.7716 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001274/0.4072, allocations: 73.58 kB / 0.7716 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.4072, allocations: 4 kB / 0.7716 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.4072, allocations: 0 / 0.7716 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.4072, allocations: 0 / 0.7716 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002719/0.4075, allocations: 319.4 kB / 0.772 GB, free: 14.49 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.4075, allocations: 0 / 0.772 GB, free: 14.49 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.66e-05/0.4076, allocations: 12 kB / 0.772 GB, free: 14.48 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.4076, allocations: 0 / 0.772 GB, free: 14.48 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.625e-06/0.4076, allocations: 3.984 kB / 0.772 GB, free: 14.47 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.4076, allocations: 0 / 0.772 GB, free: 14.47 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.4076, allocations: 4 kB / 0.772 GB, free: 14.47 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001655/0.4078, allocations: 184.2 kB / 0.7721 GB, free: 14.27 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.715e-05/0.4079, allocations: 93 kB / 0.7722 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.124e-05/0.4079, allocations: 0 / 0.7722 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.767e-05/0.4079, allocations: 4.188 kB / 0.7722 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.833e-05/0.408, allocations: 4 kB / 0.7722 GB, free: 14.15 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.284e-06/0.408, allocations: 4 kB / 0.7722 GB, free: 14.15 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.082e-05/0.408, allocations: 83.78 kB / 0.7723 GB, free: 14.07 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.408, allocations: 0 / 0.7723 GB, free: 14.07 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002279/0.4082, allocations: 24.06 kB / 0.7724 GB, free: 14.04 MB / 0.545 GB 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.0001597/0.4084, allocations: 127.2 kB / 0.7725 GB, free: 13.91 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 8.949e-05/0.4085, allocations: 35.92 kB / 0.7725 GB, free: 13.88 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.4085, allocations: 0 / 0.7725 GB, free: 13.88 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.691e-05/0.4086, allocations: 16 kB / 0.7725 GB, free: 13.86 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000202/0.4088, allocations: 14.73 kB / 0.7725 GB, free: 13.85 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003518/0.4091, allocations: 218.1 kB / 0.7727 GB, free: 13.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002217/0.4093, allocations: 0.6807 MB / 0.7734 GB, free: 12.89 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.92e-05/0.4094, allocations: 15.44 kB / 0.7734 GB, free: 12.88 MB / 0.545 GB Notification: Performance of SimCode: time 2.01e-07/0.4094, allocations: 4 kB / 0.7734 GB, free: 12.88 MB / 0.545 GB Notification: Performance of Templates: time 0.002/0.4114, allocations: 0.7998 MB / 0.7742 GB, free: 12.08 MB / 0.545 GB 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)