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.001207/0.001207, allocations: 103.2 kB / 16.4 MB, free: 6.441 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.001208/0.001208, allocations: 189.7 kB / 17.34 MB, free: 5.715 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.236/1.236, 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.001986/0.001986, allocations: 291.1 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8677/0.8677, allocations: 169.3 MB / 0.499 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001672/0.001672, allocations: 95.84 kB / 0.6821 GB, free: 6.988 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3651/0.3667, allocations: 86.97 MB / 0.767 GB, free: 3.949 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002539/0.3693, allocations: 1.472 MB / 0.7685 GB, free: 2.469 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009978/0.3703, allocations: 0.6245 MB / 0.7691 GB, free: 1.844 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.332e-05/0.3704, allocations: 3.938 kB / 0.7691 GB, free: 1.84 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.83e-05/0.3704, allocations: 0 / 0.7691 GB, free: 1.84 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 5.95e-05/0.3705, allocations: 15.84 kB / 0.7691 GB, free: 1.824 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006098/0.3711, allocations: 163.4 kB / 0.7693 GB, free: 1.664 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 8.798e-05/0.3712, allocations: 51.59 kB / 0.7693 GB, free: 1.613 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.702e-05/0.3713, allocations: 8 kB / 0.7693 GB, free: 1.605 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 7.218e-05/0.3714, allocations: 27.86 kB / 0.7694 GB, free: 1.578 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.114e-05/0.3714, allocations: 23.91 kB / 0.7694 GB, free: 1.555 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.511e-05/0.3714, allocations: 4 kB / 0.7694 GB, free: 1.551 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004861/0.3719, allocations: 343.3 kB / 0.7697 GB, free: 1.215 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 2.311e-05/0.372, allocations: 23.91 kB / 0.7697 GB, free: 1.191 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.442e-05/0.372, allocations: 19.88 kB / 0.7697 GB, free: 1.172 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000289/0.3723, allocations: 177.8 kB / 0.7699 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3723, allocations: 0 / 0.7699 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.282e-06/0.3723, allocations: 0 / 0.7699 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.282e-06/0.3723, allocations: 0 / 0.7699 GB, free: 1.004 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.0005535/0.3729, allocations: 406 kB / 0.7703 GB, free: 0.5586 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/0.3729, allocations: 8.031 kB / 0.7703 GB, free: 0.5508 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.36e-05/0.373, allocations: 12.84 kB / 0.7703 GB, free: 0.5391 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001157/0.3731, allocations: 172.3 kB / 0.7705 GB, free: 340 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.682e-05/0.3731, allocations: 4.375 kB / 0.7705 GB, free: 336 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.406e-05/0.3732, allocations: 8.375 kB / 0.7705 GB, free: 328 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002217/0.3734, allocations: 74.22 kB / 0.7706 GB, free: 248 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.3734, allocations: 4.188 kB / 0.7706 GB, free: 244 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.524e-05/0.3734, allocations: 3.938 kB / 0.7706 GB, free: 240 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.3734, allocations: 7.984 kB / 0.7706 GB, free: 232 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002074/0.3737, allocations: 43.97 kB / 0.7706 GB, free: 188 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005494/0.3742, allocations: 328.6 kB / 0.7709 GB, free: 15.81 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002573/0.3745, allocations: 82.52 kB / 0.771 GB, free: 15.72 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001011/0.3746, allocations: 32.83 kB / 0.7711 GB, free: 15.69 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.632e-05/0.3746, allocations: 3.938 kB / 0.7711 GB, free: 15.68 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.3746, allocations: 34.56 kB / 0.7711 GB, free: 15.64 MB / 0.545 GB Notification: Performance of pre-optimization done (n=7): time 1.172e-06/0.3747, allocations: 0 / 0.7711 GB, free: 15.64 MB / 0.545 GB Notification: Performance of matching and sorting (n=11): time 0.001481/0.3761, allocations: 0.6501 MB / 0.7717 GB, free: 14.9 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.344e-05/0.3762, allocations: 51.41 kB / 0.7718 GB, free: 14.84 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.674e-05/0.3763, allocations: 113.8 kB / 0.7719 GB, free: 14.71 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/0.3763, allocations: 25.7 kB / 0.7719 GB, free: 14.68 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.049e-05/0.3763, allocations: 88.05 kB / 0.772 GB, free: 14.59 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.939e-05/0.3764, allocations: 35.45 kB / 0.772 GB, free: 14.56 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.499e-05/0.3764, allocations: 33.7 kB / 0.7721 GB, free: 14.52 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.689e-05/0.3765, allocations: 314.8 kB / 0.7724 GB, free: 14.2 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001227/0.3767, allocations: 32.06 kB / 0.7724 GB, free: 14.17 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001056/0.3768, allocations: 42.8 kB / 0.7724 GB, free: 14.13 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000217/0.377, allocations: 76.77 kB / 0.7725 GB, free: 14.05 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.377, allocations: 0 / 0.7725 GB, free: 14.05 MB / 0.545 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002751/0.3773, allocations: 117.5 kB / 0.7726 GB, free: 13.93 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.3773, allocations: 8 kB / 0.7726 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.3773, allocations: 0 / 0.7726 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.3773, allocations: 0 / 0.7726 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001383/0.3775, allocations: 31.97 kB / 0.7727 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.3775, allocations: 0 / 0.7727 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.853e-05/0.3776, allocations: 7.938 kB / 0.7727 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.298e-06/0.3776, allocations: 4 kB / 0.7727 GB, free: 13.88 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 9.081e-05/0.3777, allocations: 124.2 kB / 0.7728 GB, free: 13.75 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.152e-05/0.3777, allocations: 7.906 kB / 0.7728 GB, free: 13.75 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003297/0.378, allocations: 125.6 kB / 0.7729 GB, free: 13.62 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.3781, allocations: 0 / 0.7729 GB, free: 13.62 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.3781, allocations: 4 kB / 0.7729 GB, free: 13.61 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.3781, allocations: 3.938 kB / 0.7729 GB, free: 13.61 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005068/0.3786, allocations: 382.4 kB / 0.7733 GB, free: 13.18 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3786, allocations: 0 / 0.7733 GB, free: 13.18 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001404/0.3787, allocations: 27.98 kB / 0.7733 GB, free: 13.15 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.568e-06/0.3788, allocations: 4 kB / 0.7733 GB, free: 13.15 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.3788, allocations: 7.938 kB / 0.7733 GB, free: 13.14 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.3788, allocations: 4 kB / 0.7733 GB, free: 13.14 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3788, allocations: 0 / 0.7733 GB, free: 13.14 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004614/0.3793, allocations: 247.3 kB / 0.7736 GB, free: 12.88 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.49e-05/0.3793, allocations: 85.12 kB / 0.7736 GB, free: 12.78 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.962e-05/0.3793, allocations: 7.938 kB / 0.7736 GB, free: 12.77 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001075/0.3794, allocations: 12 kB / 0.7737 GB, free: 12.76 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.827e-05/0.3795, allocations: 7.984 kB / 0.7737 GB, free: 12.75 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.026e-05/0.3795, allocations: 8 kB / 0.7737 GB, free: 12.74 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.284e-05/0.3795, allocations: 83.45 kB / 0.7738 GB, free: 12.66 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3795, allocations: 0 / 0.7738 GB, free: 12.66 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002714/0.3798, allocations: 43.92 kB / 0.7738 GB, free: 12.62 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.0001924/0.38, allocations: 127.2 kB / 0.7739 GB, free: 12.48 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002885/0.3803, allocations: 93.5 kB / 0.774 GB, free: 12.39 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3803, allocations: 3.938 kB / 0.774 GB, free: 12.39 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001185/0.3804, allocations: 43.92 kB / 0.7741 GB, free: 12.35 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002924/0.3807, allocations: 11.98 kB / 0.7741 GB, free: 12.34 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000631/0.3814, allocations: 344.1 kB / 0.7744 GB, free: 11.96 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002349/0.3816, allocations: 0.6885 MB / 0.7751 GB, free: 11.25 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.461e-05/0.3817, allocations: 15.44 kB / 0.7751 GB, free: 11.23 MB / 0.545 GB Notification: Performance of SimCode: time 3.01e-07/0.3817, allocations: 0 / 0.7751 GB, free: 11.23 MB / 0.545 GB Notification: Performance of Templates: time 0.002637/0.3843, allocations: 1.33 MB / 0.7764 GB, free: 9.914 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)