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.006599/0.006599, allocations: 100.1 kB / 15.73 MB, free: 6.062 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.001217/0.001217, allocations: 188.9 kB / 16.67 MB, free: 5.973 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.311/1.311, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002092/0.002092, allocations: 284.4 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.926/0.926, allocations: 169.3 MB / 0.4983 GB, free: 4.406 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001678/0.001678, allocations: 95.86 kB / 0.6814 GB, free: 6.934 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3982/0.3999, allocations: 86.98 MB / 0.7664 GB, free: 3.855 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002122/0.4021, allocations: 1.249 MB / 0.7676 GB, free: 2.598 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.000943/0.403, allocations: 0.6167 MB / 0.7682 GB, free: 1.98 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.281e-05/0.4031, allocations: 4 kB / 0.7682 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.494e-05/0.4031, allocations: 0 / 0.7682 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.594e-05/0.4031, allocations: 11.92 kB / 0.7682 GB, free: 1.965 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005296/0.4037, allocations: 143.4 kB / 0.7684 GB, free: 1.824 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 5.368e-05/0.4037, allocations: 15.92 kB / 0.7684 GB, free: 1.809 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.682e-05/0.4038, allocations: 4 kB / 0.7684 GB, free: 1.805 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.87e-05/0.4038, allocations: 15.97 kB / 0.7684 GB, free: 1.789 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.705e-05/0.4039, allocations: 7.938 kB / 0.7684 GB, free: 1.781 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.1e-05/0.4039, allocations: 0 / 0.7684 GB, free: 1.781 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005022/0.4044, allocations: 343.3 kB / 0.7687 GB, free: 1.445 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.176e-05/0.4044, allocations: 7.984 kB / 0.7687 GB, free: 1.438 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.432e-05/0.4045, allocations: 11.94 kB / 0.7687 GB, free: 1.426 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002955/0.4048, allocations: 153.1 kB / 0.7689 GB, free: 1.285 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.4048, allocations: 0 / 0.7689 GB, free: 1.285 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.433e-06/0.4048, allocations: 0 / 0.7689 GB, free: 1.285 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.4048, allocations: 0 / 0.7689 GB, free: 1.285 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.0003952/0.4052, allocations: 359.1 kB / 0.7692 GB, free: 0.8828 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.4052, allocations: 12.03 kB / 0.7692 GB, free: 0.8711 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.384e-05/0.4053, allocations: 8.922 kB / 0.7693 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001295/0.4054, allocations: 168.3 kB / 0.7694 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.677e-06/0.4054, allocations: 4.375 kB / 0.7694 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.152e-05/0.4055, allocations: 4.375 kB / 0.7694 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001159/0.4056, allocations: 42.19 kB / 0.7695 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.118e-06/0.4056, allocations: 4.172 kB / 0.7695 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.215e-05/0.4056, allocations: 7.938 kB / 0.7695 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.4056, allocations: 0 / 0.7695 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.728e-05/0.4057, allocations: 4 kB / 0.7695 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001548/0.4058, allocations: 161.6 kB / 0.7696 GB, free: 392 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001746/0.406, allocations: 46.61 kB / 0.7697 GB, free: 336 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.463e-05/0.406, allocations: 20.94 kB / 0.7697 GB, free: 312 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.694e-05/0.4061, allocations: 3.938 kB / 0.7697 GB, free: 308 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.332e-05/0.4061, allocations: 30.56 kB / 0.7697 GB, free: 268 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.4061, allocations: 7.938 kB / 0.7697 GB, free: 260 kB / 0.5294 GB Notification: Performance of matching and sorting (n=6): time 0.0006475/0.4068, allocations: 310.3 kB / 0.77 GB, free: 15.9 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.789e-05/0.4068, allocations: 55.39 kB / 0.7701 GB, free: 15.83 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.903e-05/0.4069, allocations: 93.86 kB / 0.7702 GB, free: 15.73 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.461e-05/0.4069, allocations: 33.64 kB / 0.7702 GB, free: 15.69 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.652e-05/0.407, allocations: 80.14 kB / 0.7703 GB, free: 15.61 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.388e-05/0.407, allocations: 27.78 kB / 0.7703 GB, free: 15.58 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.08e-05/0.4071, allocations: 17.72 kB / 0.7703 GB, free: 15.56 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.4072, allocations: 314.8 kB / 0.7706 GB, free: 15.24 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.096e-05/0.4072, allocations: 15.98 kB / 0.7706 GB, free: 15.23 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.487e-05/0.4072, allocations: 15.98 kB / 0.7707 GB, free: 15.21 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.517e-05/0.4073, allocations: 32.8 kB / 0.7707 GB, free: 15.18 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.21e-07/0.4073, allocations: 0 / 0.7707 GB, free: 15.18 MB / 0.545 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001056/0.4074, allocations: 73.62 kB / 0.7708 GB, free: 15.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.4074, allocations: 7.938 kB / 0.7708 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.4075, allocations: 0 / 0.7708 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.4075, allocations: 0 / 0.7708 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.609e-05/0.4075, allocations: 15.98 kB / 0.7708 GB, free: 15.07 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.4075, allocations: 0 / 0.7708 GB, free: 15.07 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.795e-05/0.4076, allocations: 4 kB / 0.7708 GB, free: 15.07 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-06/0.4076, allocations: 0 / 0.7708 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 8.625e-05/0.4077, allocations: 120.2 kB / 0.7709 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.288e-05/0.4077, allocations: 3.938 kB / 0.7709 GB, free: 14.94 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001466/0.4078, allocations: 73.64 kB / 0.771 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.4079, allocations: 0 / 0.771 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.4079, allocations: 0 / 0.771 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.4079, allocations: 0 / 0.771 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003349/0.4082, allocations: 320 kB / 0.7713 GB, free: 14.49 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.4082, allocations: 0 / 0.7713 GB, free: 14.49 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.314e-05/0.4083, allocations: 15.98 kB / 0.7713 GB, free: 14.47 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.4083, allocations: 0 / 0.7713 GB, free: 14.47 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.253e-06/0.4083, allocations: 0 / 0.7713 GB, free: 14.47 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.4083, allocations: 4 kB / 0.7713 GB, free: 14.47 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.4083, allocations: 0 / 0.7713 GB, free: 14.47 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001919/0.4085, allocations: 184.3 kB / 0.7715 GB, free: 14.27 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.837e-05/0.4086, allocations: 93.11 kB / 0.7716 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.246e-05/0.4086, allocations: 7.875 kB / 0.7716 GB, free: 14.15 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.858e-05/0.4087, allocations: 0 / 0.7716 GB, free: 14.15 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.937e-05/0.4087, allocations: 7.984 kB / 0.7716 GB, free: 14.14 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.512e-06/0.4087, allocations: 4 kB / 0.7716 GB, free: 14.14 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.442e-05/0.4088, allocations: 79.28 kB / 0.7717 GB, free: 14.06 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.4088, allocations: 0 / 0.7717 GB, free: 14.06 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002557/0.409, allocations: 19.94 kB / 0.7717 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 (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.0002074/0.4092, allocations: 127.2 kB / 0.7718 GB, free: 13.91 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001198/0.4094, allocations: 35.92 kB / 0.7718 GB, free: 13.88 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.4094, allocations: 0 / 0.7718 GB, free: 13.88 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 3.054e-05/0.4094, allocations: 15.98 kB / 0.7719 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.0002351/0.4097, allocations: 15.88 kB / 0.7719 GB, free: 13.84 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004407/0.4101, allocations: 188.5 kB / 0.772 GB, free: 13.63 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002806/0.4104, allocations: 0.6768 MB / 0.7727 GB, free: 12.93 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.645e-05/0.4105, allocations: 15.97 kB / 0.7727 GB, free: 12.91 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.057e-05/0.4105, allocations: 11.44 kB / 0.7727 GB, free: 12.9 MB / 0.545 GB Notification: Performance of SimCode: time 3.1e-07/0.4105, allocations: 0 / 0.7727 GB, free: 12.9 MB / 0.545 GB Notification: Performance of Templates: time 0.002924/0.4134, allocations: 0.6419 MB / 0.7734 GB, free: 12.3 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)