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.001122/0.001122, allocations: 105.7 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.001232/0.001233, allocations: 185.5 kB / 17.34 MB, free: 5.742 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.269/1.269, allocations: 222.9 MB / 241 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.00227/0.00227, allocations: 292.5 kB / 291.5 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.8941/0.8941, allocations: 169.3 MB / 0.499 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001805/0.001805, allocations: 99.84 kB / 0.6821 GB, free: 6.961 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3997/0.4015, allocations: 86.98 MB / 0.767 GB, free: 3.918 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002192/0.4037, allocations: 1.268 MB / 0.7683 GB, free: 2.645 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009628/0.4047, allocations: 0.6167 MB / 0.7689 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.387e-05/0.4047, allocations: 0 / 0.7689 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.696e-05/0.4048, allocations: 0 / 0.7689 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.451e-05/0.4048, allocations: 3.938 kB / 0.7689 GB, free: 2.023 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005621/0.4054, allocations: 151.4 kB / 0.769 GB, free: 1.875 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 5.964e-05/0.4055, allocations: 19.92 kB / 0.7691 GB, free: 1.855 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.759e-05/0.4055, allocations: 4 kB / 0.7691 GB, free: 1.852 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.371e-05/0.4055, allocations: 4 kB / 0.7691 GB, free: 1.848 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.939e-05/0.4056, allocations: 15.91 kB / 0.7691 GB, free: 1.832 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.01e-05/0.4056, allocations: 0 / 0.7691 GB, free: 1.832 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004953/0.4061, allocations: 343.3 kB / 0.7694 GB, free: 1.496 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.3e-05/0.4061, allocations: 4 kB / 0.7694 GB, free: 1.492 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.373e-05/0.4062, allocations: 15.92 kB / 0.7694 GB, free: 1.477 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002522/0.4064, allocations: 145.9 kB / 0.7696 GB, free: 1.34 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.4064, allocations: 0 / 0.7696 GB, free: 1.34 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.603e-06/0.4064, allocations: 4 kB / 0.7696 GB, free: 1.336 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.4065, allocations: 0 / 0.7696 GB, free: 1.336 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.0003974/0.4069, allocations: 359.4 kB / 0.7699 GB, free: 0.9336 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.158e-05/0.4069, allocations: 8.031 kB / 0.7699 GB, free: 0.9258 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.417e-05/0.4069, allocations: 0.9375 kB / 0.7699 GB, free: 0.9258 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.4071, allocations: 168.4 kB / 0.7701 GB, free: 0.7227 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.08e-05/0.4071, allocations: 8.312 kB / 0.7701 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.957e-05/0.4071, allocations: 4.375 kB / 0.7701 GB, free: 0.7109 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.717e-05/0.4072, allocations: 46.19 kB / 0.7701 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.4072, allocations: 192 / 0.7701 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.314e-05/0.4072, allocations: 7.922 kB / 0.7701 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.676e-06/0.4072, allocations: 0 / 0.7701 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.583e-05/0.4073, allocations: 8 kB / 0.7701 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001637/0.4074, allocations: 157.7 kB / 0.7703 GB, free: 452 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001683/0.4076, allocations: 50.55 kB / 0.7703 GB, free: 392 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.948e-05/0.4077, allocations: 16.94 kB / 0.7704 GB, free: 372 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.13e-05/0.4077, allocations: 4 kB / 0.7704 GB, free: 368 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.364e-05/0.4077, allocations: 38.5 kB / 0.7704 GB, free: 320 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=4): time 1.062e-06/0.4077, allocations: 0 / 0.7704 GB, free: 320 kB / 0.5294 GB Notification: Performance of matching and sorting (n=6): time 0.0005816/0.4083, allocations: 314.1 kB / 0.7707 GB, free: 15.95 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.288e-05/0.4084, allocations: 55.41 kB / 0.7708 GB, free: 15.89 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.566e-05/0.4084, allocations: 97.84 kB / 0.7709 GB, free: 15.78 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.609e-05/0.4085, allocations: 33.7 kB / 0.7709 GB, free: 15.74 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 2.753e-05/0.4085, allocations: 80.14 kB / 0.771 GB, free: 15.66 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.448e-05/0.4085, allocations: 15.75 kB / 0.771 GB, free: 15.64 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.343e-05/0.4086, allocations: 25.7 kB / 0.771 GB, free: 15.61 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.839e-05/0.4087, allocations: 310.8 kB / 0.7713 GB, free: 15.3 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.682e-05/0.4087, allocations: 15.98 kB / 0.7713 GB, free: 15.29 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.865e-05/0.4087, allocations: 12 kB / 0.7713 GB, free: 15.27 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.408e-05/0.4088, allocations: 32.8 kB / 0.7714 GB, free: 15.24 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.52e-07/0.4088, allocations: 3.938 kB / 0.7714 GB, free: 15.23 MB / 0.545 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001025/0.4089, allocations: 69.59 kB / 0.7714 GB, free: 15.16 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.4089, allocations: 7.938 kB / 0.7714 GB, free: 15.15 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.4089, allocations: 0 / 0.7714 GB, free: 15.15 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.409, allocations: 4 kB / 0.7714 GB, free: 15.15 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.092e-05/0.409, allocations: 11.98 kB / 0.7714 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/0.409, allocations: 0 / 0.7714 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.712e-05/0.409, allocations: 0 / 0.7714 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.221e-06/0.409, allocations: 8 kB / 0.7715 GB, free: 15.13 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.6e-05/0.4091, allocations: 116.2 kB / 0.7716 GB, free: 15.01 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.394e-05/0.4091, allocations: 7.938 kB / 0.7716 GB, free: 15 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001355/0.4093, allocations: 69.64 kB / 0.7716 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.4093, allocations: 0 / 0.7716 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.4093, allocations: 0 / 0.7716 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.4093, allocations: 0 / 0.7716 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002921/0.4096, allocations: 319.3 kB / 0.7719 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.4096, allocations: 4.031 kB / 0.7719 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.9e-05/0.4097, allocations: 8 kB / 0.772 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.4097, allocations: 0.5156 kB / 0.772 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.287e-06/0.4097, allocations: 7.984 kB / 0.772 GB, free: 14.53 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.4097, allocations: 192 / 0.772 GB, free: 14.53 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.4097, allocations: 4 kB / 0.772 GB, free: 14.53 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001734/0.4099, allocations: 184.2 kB / 0.7721 GB, free: 14.33 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.349e-05/0.41, allocations: 93.09 kB / 0.7722 GB, free: 14.22 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.269e-05/0.41, allocations: 0 / 0.7722 GB, free: 14.22 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.077e-05/0.41, allocations: 7.984 kB / 0.7722 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.23e-05/0.4101, allocations: 0 / 0.7722 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-06/0.4101, allocations: 7.984 kB / 0.7722 GB, free: 14.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.485e-05/0.4101, allocations: 83.28 kB / 0.7723 GB, free: 14.12 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4101, allocations: 0 / 0.7723 GB, free: 14.12 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002368/0.4104, allocations: 16 kB / 0.7723 GB, free: 14.11 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.0001998/0.4106, allocations: 131.2 kB / 0.7725 GB, free: 13.97 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 9.05e-05/0.4107, allocations: 35.86 kB / 0.7725 GB, free: 13.93 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.4107, allocations: 0 / 0.7725 GB, free: 13.93 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.785e-05/0.4107, allocations: 19.94 kB / 0.7725 GB, free: 13.91 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000212/0.4109, allocations: 11.92 kB / 0.7725 GB, free: 13.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004039/0.4113, allocations: 218.1 kB / 0.7727 GB, free: 13.65 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002265/0.4116, allocations: 0.6807 MB / 0.7734 GB, free: 12.95 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.015e-05/0.4116, allocations: 11.44 kB / 0.7734 GB, free: 12.94 MB / 0.545 GB Notification: Performance of SimCode: time 2.51e-07/0.4116, allocations: 0 / 0.7734 GB, free: 12.94 MB / 0.545 GB Notification: Performance of Templates: time 0.002092/0.4137, allocations: 0.817 MB / 0.7742 GB, free: 12.13 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)