Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004755/0.004755, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001089/0.001089, allocations: 192.4 kB / 16.67 MB, free: 5.969 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.3/1.3, allocations: 222.9 MB / 240.4 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.002066/0.002066, allocations: 284.1 kB / 290.8 MB, free: 14.42 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9356/0.9356, allocations: 169.3 MB / 0.4983 GB, free: 4.398 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00176/0.00176, allocations: 99.84 kB / 0.6815 GB, free: 6.938 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4234/0.4252, allocations: 86.98 MB / 0.7664 GB, free: 3.895 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002524/0.4278, allocations: 1.456 MB / 0.7678 GB, free: 2.43 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001042/0.4288, allocations: 0.6323 MB / 0.7684 GB, free: 1.797 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.36e-05/0.4289, allocations: 0 / 0.7684 GB, free: 1.797 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 3.145e-05/0.429, allocations: 11.92 kB / 0.7684 GB, free: 1.785 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.967e-05/0.429, allocations: 3.938 kB / 0.7684 GB, free: 1.781 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006252/0.4296, allocations: 163.4 kB / 0.7686 GB, free: 1.621 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 9.15e-05/0.4297, allocations: 59.53 kB / 0.7687 GB, free: 1.562 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.879e-05/0.4298, allocations: 7.984 kB / 0.7687 GB, free: 1.555 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 6.476e-05/0.4299, allocations: 23.91 kB / 0.7687 GB, free: 1.531 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.45e-05/0.4299, allocations: 27.92 kB / 0.7687 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.514e-05/0.4299, allocations: 4 kB / 0.7687 GB, free: 1.5 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005341/0.4305, allocations: 347.3 kB / 0.7691 GB, free: 1.16 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 2.352e-05/0.4305, allocations: 15.92 kB / 0.7691 GB, free: 1.145 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.403e-05/0.4305, allocations: 27.86 kB / 0.7691 GB, free: 1.117 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002945/0.4308, allocations: 169.2 kB / 0.7693 GB, free: 0.9609 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.4308, allocations: 7.875 kB / 0.7693 GB, free: 0.9531 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.142e-06/0.4309, allocations: 0 / 0.7693 GB, free: 0.9531 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.524e-06/0.4309, allocations: 0 / 0.7693 GB, free: 0.9531 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005597/0.4314, allocations: 410.9 kB / 0.7697 GB, free: 0.5 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.4315, allocations: 12.03 kB / 0.7697 GB, free: 500 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.568e-05/0.4315, allocations: 0.9375 kB / 0.7697 GB, free: 500 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000119/0.4316, allocations: 176.3 kB / 0.7698 GB, free: 284 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.609e-05/0.4317, allocations: 4.375 kB / 0.7698 GB, free: 280 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.511e-05/0.4317, allocations: 8.375 kB / 0.7698 GB, free: 272 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002363/0.4319, allocations: 80.95 kB / 0.7699 GB, free: 188 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.432, allocations: 192 / 0.7699 GB, free: 188 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.432, allocations: 3.938 kB / 0.7699 GB, free: 184 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.432, allocations: 8 kB / 0.7699 GB, free: 176 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002285/0.4322, allocations: 55.84 kB / 0.77 GB, free: 120 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005524/0.4328, allocations: 320.7 kB / 0.7703 GB, free: 15.75 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000278/0.4331, allocations: 82.47 kB / 0.7704 GB, free: 15.66 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.4332, allocations: 32.84 kB / 0.7704 GB, free: 15.63 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.93e-05/0.4332, allocations: 0 / 0.7704 GB, free: 15.63 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.1e-05/0.4333, allocations: 30.56 kB / 0.7704 GB, free: 15.59 MB / 0.545 GB Notification: Performance of pre-optimization done (n=7): time 9.92e-07/0.4333, allocations: 0 / 0.7704 GB, free: 15.59 MB / 0.545 GB Notification: Performance of matching and sorting (n=11): time 0.0016/0.4349, allocations: 0.646 MB / 0.7711 GB, free: 14.85 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.243e-05/0.4349, allocations: 51.41 kB / 0.7711 GB, free: 14.79 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.467e-05/0.435, allocations: 109.8 kB / 0.7712 GB, free: 14.67 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.57e-05/0.435, allocations: 29.7 kB / 0.7712 GB, free: 14.64 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 3.923e-05/0.4351, allocations: 88.09 kB / 0.7713 GB, free: 14.55 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.288e-05/0.4351, allocations: 47.62 kB / 0.7714 GB, free: 14.5 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.708e-05/0.4352, allocations: 29.83 kB / 0.7714 GB, free: 14.46 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001013/0.4353, allocations: 314.8 kB / 0.7717 GB, free: 14.15 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000135/0.4354, allocations: 43.91 kB / 0.7717 GB, free: 14.11 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001197/0.4355, allocations: 27.98 kB / 0.7718 GB, free: 14.08 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000242/0.4358, allocations: 76.77 kB / 0.7718 GB, free: 14 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.4358, allocations: 0 / 0.7718 GB, free: 14 MB / 0.545 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003124/0.4361, allocations: 116 kB / 0.772 GB, free: 13.88 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.4361, allocations: 4 kB / 0.772 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.4362, allocations: 0 / 0.772 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.121e-05/0.4362, allocations: 0 / 0.772 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.4363, allocations: 32.09 kB / 0.772 GB, free: 13.85 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.4364, allocations: 4 kB / 0.772 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.979e-05/0.4365, allocations: 7.938 kB / 0.772 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.122e-05/0.4365, allocations: 8 kB / 0.772 GB, free: 13.83 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 8.438e-05/0.4366, allocations: 116.2 kB / 0.7721 GB, free: 13.71 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.432e-05/0.4366, allocations: 15.92 kB / 0.7721 GB, free: 13.69 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003634/0.437, allocations: 125.6 kB / 0.7723 GB, free: 13.56 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.437, allocations: 4 kB / 0.7723 GB, free: 13.56 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.437, allocations: 4 kB / 0.7723 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.437, allocations: 3.938 kB / 0.7723 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005271/0.4376, allocations: 374.5 kB / 0.7726 GB, free: 13.13 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.4376, allocations: 4 kB / 0.7726 GB, free: 13.12 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001452/0.4377, allocations: 27.92 kB / 0.7727 GB, free: 13.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.4377, allocations: 0 / 0.7727 GB, free: 13.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.4377, allocations: 7.938 kB / 0.7727 GB, free: 13.09 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.4378, allocations: 0 / 0.7727 GB, free: 13.09 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.4378, allocations: 4 kB / 0.7727 GB, free: 13.09 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004862/0.4383, allocations: 259.7 kB / 0.7729 GB, free: 12.82 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.736e-05/0.4383, allocations: 89.05 kB / 0.773 GB, free: 12.71 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.932e-05/0.4383, allocations: 3.938 kB / 0.773 GB, free: 12.71 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.4384, allocations: 4 kB / 0.773 GB, free: 12.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.869e-05/0.4385, allocations: 7.984 kB / 0.773 GB, free: 12.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.024e-05/0.4385, allocations: 12.06 kB / 0.773 GB, free: 12.68 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.335e-05/0.4385, allocations: 83.27 kB / 0.7731 GB, free: 12.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4385, allocations: 0 / 0.7731 GB, free: 12.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002746/0.4388, allocations: 39.81 kB / 0.7731 GB, free: 12.56 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_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 (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.0001942/0.439, allocations: 139 kB / 0.7733 GB, free: 12.42 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003131/0.4393, allocations: 83.88 kB / 0.7734 GB, free: 12.34 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.4393, allocations: 4 kB / 0.7734 GB, free: 12.33 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001418/0.4395, allocations: 43.92 kB / 0.7734 GB, free: 12.29 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.4398, allocations: 14.83 kB / 0.7734 GB, free: 12.28 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006057/0.4404, allocations: 305.4 kB / 0.7737 GB, free: 11.95 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002355/0.4407, allocations: 0.6963 MB / 0.7744 GB, free: 11.23 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 5.632e-05/0.4407, allocations: 12.61 kB / 0.7744 GB, free: 11.21 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.291e-05/0.4408, allocations: 15.44 kB / 0.7744 GB, free: 11.2 MB / 0.545 GB Notification: Performance of SimCode: time 2.3e-07/0.4408, allocations: 0 / 0.7744 GB, free: 11.2 MB / 0.545 GB Notification: Performance of Templates: time 0.003679/0.4444, allocations: 1.145 MB / 0.7755 GB, free: 10.1 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)