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.001292/0.001292, allocations: 109.8 kB / 16.41 MB, free: 6.035 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.001392/0.001392, allocations: 183.7 kB / 17.34 MB, free: 5.633 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.299/1.299, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002251/0.002251, allocations: 294.8 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.9783/0.9783, allocations: 169.2 MB / 0.499 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 91.86 kB / 0.6821 GB, free: 6.941 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3996/0.4015, allocations: 86.98 MB / 0.767 GB, free: 3.891 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002336/0.4039, allocations: 1.28 MB / 0.7683 GB, free: 2.602 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009905/0.4049, allocations: 0.6205 MB / 0.7689 GB, free: 1.98 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.89e-05/0.4049, allocations: 4 kB / 0.7689 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.915e-05/0.4049, allocations: 0 / 0.7689 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.478e-05/0.405, allocations: 3.938 kB / 0.7689 GB, free: 1.973 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005726/0.4056, allocations: 151.4 kB / 0.7691 GB, free: 1.824 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 6.117e-05/0.4057, allocations: 31.92 kB / 0.7691 GB, free: 1.793 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.117e-05/0.4057, allocations: 0 / 0.7691 GB, free: 1.793 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 2.731e-05/0.4057, allocations: 23.91 kB / 0.7691 GB, free: 1.77 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.189e-05/0.4058, allocations: 4 kB / 0.7691 GB, free: 1.766 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.238e-05/0.4058, allocations: 0 / 0.7691 GB, free: 1.766 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00049/0.4063, allocations: 347.3 kB / 0.7694 GB, free: 1.426 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.584e-05/0.4063, allocations: 11.92 kB / 0.7695 GB, free: 1.414 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.578e-05/0.4064, allocations: 15.94 kB / 0.7695 GB, free: 1.398 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002476/0.4066, allocations: 153.9 kB / 0.7696 GB, free: 1.254 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.4066, allocations: 4 kB / 0.7696 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.292e-06/0.4066, allocations: 0 / 0.7696 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.529e-06/0.4066, allocations: 4 kB / 0.7696 GB, free: 1.246 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.0004363/0.4071, allocations: 367.3 kB / 0.77 GB, free: 0.8359 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.4071, allocations: 8.031 kB / 0.77 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.418e-05/0.4072, allocations: 0.9375 kB / 0.77 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001155/0.4073, allocations: 168.4 kB / 0.7701 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.506e-06/0.4073, allocations: 384 / 0.7701 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.463e-05/0.4073, allocations: 4.375 kB / 0.7701 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001201/0.4074, allocations: 58.17 kB / 0.7702 GB, free: 0.5586 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.4075, allocations: 4.188 kB / 0.7702 GB, free: 0.5547 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.263e-05/0.4075, allocations: 3.938 kB / 0.7702 GB, free: 0.5508 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.4075, allocations: 0 / 0.7702 GB, free: 0.5508 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.193e-05/0.4075, allocations: 19.98 kB / 0.7702 GB, free: 0.5312 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000179/0.4077, allocations: 165.6 kB / 0.7704 GB, free: 328 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001107/0.4079, allocations: 54.56 kB / 0.7704 GB, free: 264 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.146e-05/0.4079, allocations: 36.78 kB / 0.7705 GB, free: 224 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.981e-05/0.4079, allocations: 4.234 kB / 0.7705 GB, free: 220 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.326e-05/0.408, allocations: 30.56 kB / 0.7705 GB, free: 180 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=7): time 1.072e-06/0.408, allocations: 0 / 0.7705 GB, free: 180 kB / 0.5294 GB Notification: Performance of matching and sorting (n=11): time 0.001147/0.4091, allocations: 0.5953 MB / 0.7711 GB, free: 15.49 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.467e-05/0.4092, allocations: 59.41 kB / 0.7711 GB, free: 15.42 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.65e-05/0.4092, allocations: 89.86 kB / 0.7712 GB, free: 15.32 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.859e-05/0.4093, allocations: 29.7 kB / 0.7713 GB, free: 15.29 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 3.227e-05/0.4093, allocations: 88.12 kB / 0.7713 GB, free: 15.2 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.956e-05/0.4094, allocations: 35.45 kB / 0.7714 GB, free: 15.16 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.426e-05/0.4094, allocations: 29.7 kB / 0.7714 GB, free: 15.12 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001044/0.4095, allocations: 314.8 kB / 0.7717 GB, free: 14.81 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.989e-05/0.4096, allocations: 24.11 kB / 0.7717 GB, free: 14.79 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.785e-05/0.4096, allocations: 27.98 kB / 0.7718 GB, free: 14.76 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.797e-05/0.4097, allocations: 58.86 kB / 0.7718 GB, free: 14.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.82e-07/0.4097, allocations: 0 / 0.7718 GB, free: 14.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001518/0.4099, allocations: 109.5 kB / 0.7719 GB, free: 14.59 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.4099, allocations: 4 kB / 0.7719 GB, free: 14.58 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.4099, allocations: 4 kB / 0.7719 GB, free: 14.58 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.4099, allocations: 0 / 0.7719 GB, free: 14.58 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.589e-05/0.41, allocations: 19.98 kB / 0.7719 GB, free: 14.56 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.41, allocations: 0 / 0.7719 GB, free: 14.56 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.941e-05/0.4101, allocations: 15.98 kB / 0.772 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.166e-06/0.4101, allocations: 0 / 0.772 GB, free: 14.54 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 7.316e-05/0.4101, allocations: 120.2 kB / 0.7721 GB, free: 14.42 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.736e-05/0.4102, allocations: 7.938 kB / 0.7721 GB, free: 14.41 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001864/0.4104, allocations: 101.6 kB / 0.7722 GB, free: 14.3 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.4104, allocations: 0 / 0.7722 GB, free: 14.3 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.4104, allocations: 4 kB / 0.7722 GB, free: 14.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.4104, allocations: 7.922 kB / 0.7722 GB, free: 14.29 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003767/0.4108, allocations: 354.4 kB / 0.7725 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.4108, allocations: 0 / 0.7725 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001037/0.4109, allocations: 20 kB / 0.7725 GB, free: 13.87 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.4109, allocations: 0 / 0.7725 GB, free: 13.87 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.205e-06/0.4109, allocations: 0 / 0.7725 GB, free: 13.87 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.4109, allocations: 0 / 0.7725 GB, free: 13.87 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.353e-06/0.4109, allocations: 7.984 kB / 0.7726 GB, free: 13.86 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002549/0.4112, allocations: 221.8 kB / 0.7728 GB, free: 13.63 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.286e-05/0.4112, allocations: 81.02 kB / 0.7728 GB, free: 13.53 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.639e-05/0.4113, allocations: 12.09 kB / 0.7729 GB, free: 13.52 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.412e-05/0.4114, allocations: 0 / 0.7729 GB, free: 13.52 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.326e-05/0.4114, allocations: 7.984 kB / 0.7729 GB, free: 13.51 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.157e-06/0.4114, allocations: 8 kB / 0.7729 GB, free: 13.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.861e-05/0.4114, allocations: 75.28 kB / 0.7729 GB, free: 13.43 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4114, allocations: 0 / 0.7729 GB, free: 13.43 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000278/0.4117, allocations: 35.98 kB / 0.773 GB, free: 13.39 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.0002015/0.4119, allocations: 143.2 kB / 0.7731 GB, free: 13.25 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000147/0.4121, allocations: 67.84 kB / 0.7732 GB, free: 13.18 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4121, allocations: 0 / 0.7732 GB, free: 13.18 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 4.528e-05/0.4122, allocations: 35.92 kB / 0.7732 GB, free: 13.14 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002121/0.4124, allocations: 10.84 kB / 0.7732 GB, free: 13.14 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004953/0.4129, allocations: 310.5 kB / 0.7735 GB, free: 12.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000236/0.4131, allocations: 0.6864 MB / 0.7742 GB, free: 12.09 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.859e-05/0.4132, allocations: 15.44 kB / 0.7742 GB, free: 12.08 MB / 0.545 GB Notification: Performance of SimCode: time 2.31e-07/0.4132, allocations: 0 / 0.7742 GB, free: 12.08 MB / 0.545 GB Notification: Performance of Templates: time 0.002557/0.4157, allocations: 1.131 MB / 0.7753 GB, free: 10.96 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)