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.001307/0.001307, allocations: 110.3 kB / 16.41 MB, free: 6.477 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.001342/0.001342, allocations: 183 kB / 17.34 MB, free: 5.754 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 / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002013/0.002013, allocations: 292.7 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8952/0.8952, allocations: 169.3 MB / 0.499 GB, free: 4.449 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001751/0.001751, allocations: 95.84 kB / 0.6821 GB, free: 6.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3936/0.3954, allocations: 86.98 MB / 0.7671 GB, free: 3.941 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002383/0.3978, allocations: 1.461 MB / 0.7685 GB, free: 2.469 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001003/0.3988, allocations: 0.6361 MB / 0.7691 GB, free: 1.832 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.358e-05/0.3989, allocations: 0 / 0.7691 GB, free: 1.832 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.752e-05/0.3989, allocations: 3.938 kB / 0.7691 GB, free: 1.828 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.922e-05/0.399, allocations: 11.92 kB / 0.7691 GB, free: 1.816 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005187/0.3995, allocations: 161.5 kB / 0.7693 GB, free: 1.66 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 9.991e-05/0.3996, allocations: 59.53 kB / 0.7693 GB, free: 1.602 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.701e-05/0.3997, allocations: 7.984 kB / 0.7693 GB, free: 1.594 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 6.187e-05/0.3997, allocations: 19.94 kB / 0.7694 GB, free: 1.574 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.79e-05/0.3998, allocations: 27.89 kB / 0.7694 GB, free: 1.547 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.627e-05/0.3998, allocations: 4 kB / 0.7694 GB, free: 1.543 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004673/0.4003, allocations: 347.3 kB / 0.7697 GB, free: 1.203 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 2.778e-05/0.4003, allocations: 19.91 kB / 0.7697 GB, free: 1.184 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.227e-05/0.4003, allocations: 23.88 kB / 0.7698 GB, free: 1.16 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002625/0.4006, allocations: 177.8 kB / 0.7699 GB, free: 0.9922 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.4006, allocations: 3.938 kB / 0.7699 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.452e-06/0.4006, allocations: 0 / 0.7699 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.4006, allocations: 0 / 0.7699 GB, free: 0.9883 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.0005818/0.4012, allocations: 391.3 kB / 0.7703 GB, free: 0.5547 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.4013, allocations: 12.03 kB / 0.7703 GB, free: 0.543 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.075e-05/0.4013, allocations: 8.844 kB / 0.7703 GB, free: 0.5352 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001127/0.4014, allocations: 176.3 kB / 0.7705 GB, free: 332 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.4015, allocations: 4.375 kB / 0.7705 GB, free: 328 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.366e-05/0.4015, allocations: 8.375 kB / 0.7705 GB, free: 320 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002252/0.4017, allocations: 78.16 kB / 0.7706 GB, free: 236 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.4017, allocations: 192 / 0.7706 GB, free: 236 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.562e-05/0.4018, allocations: 7.938 kB / 0.7706 GB, free: 228 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.4018, allocations: 0 / 0.7706 GB, free: 228 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002166/0.402, allocations: 47.95 kB / 0.7706 GB, free: 180 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005135/0.4025, allocations: 332.6 kB / 0.7709 GB, free: 15.8 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002699/0.4028, allocations: 78.53 kB / 0.771 GB, free: 15.71 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.4029, allocations: 36.81 kB / 0.7711 GB, free: 15.68 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.843e-05/0.4029, allocations: 4 kB / 0.7711 GB, free: 15.67 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.507e-05/0.403, allocations: 38.56 kB / 0.7711 GB, free: 15.62 MB / 0.545 GB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.403, allocations: 0 / 0.7711 GB, free: 15.62 MB / 0.545 GB Notification: Performance of matching and sorting (n=11): time 0.001584/0.4046, allocations: 0.6462 MB / 0.7717 GB, free: 14.89 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.57e-05/0.4046, allocations: 59.34 kB / 0.7718 GB, free: 14.82 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.868e-05/0.4047, allocations: 101.8 kB / 0.7719 GB, free: 14.71 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.653e-05/0.4047, allocations: 25.7 kB / 0.7719 GB, free: 14.68 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.397e-05/0.4048, allocations: 96.03 kB / 0.772 GB, free: 14.58 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.394e-05/0.4048, allocations: 35.45 kB / 0.772 GB, free: 14.54 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.257e-05/0.4049, allocations: 29.72 kB / 0.7721 GB, free: 14.51 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.405, allocations: 318.8 kB / 0.7724 GB, free: 14.19 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001349/0.4051, allocations: 27.98 kB / 0.7724 GB, free: 14.16 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001305/0.4053, allocations: 40.09 kB / 0.7724 GB, free: 14.12 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000236/0.4055, allocations: 75.39 kB / 0.7725 GB, free: 14.05 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.4055, allocations: 4 kB / 0.7725 GB, free: 14.04 MB / 0.545 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000296/0.4058, allocations: 117.5 kB / 0.7726 GB, free: 13.92 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.4058, allocations: 4 kB / 0.7726 GB, free: 13.92 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.728e-06/0.4059, allocations: 0 / 0.7726 GB, free: 13.92 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.4059, allocations: 0 / 0.7726 GB, free: 13.92 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001495/0.406, allocations: 31.98 kB / 0.7727 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.406, allocations: 0 / 0.7727 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.574e-05/0.4061, allocations: 11.92 kB / 0.7727 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.156e-06/0.4061, allocations: 0 / 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 8.074e-05/0.4062, allocations: 124.2 kB / 0.7728 GB, free: 13.75 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.291e-05/0.4063, allocations: 7.906 kB / 0.7728 GB, free: 13.74 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003592/0.4066, allocations: 125.5 kB / 0.7729 GB, free: 13.61 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.4066, allocations: 4 kB / 0.7729 GB, free: 13.61 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.4066, allocations: 0 / 0.7729 GB, free: 13.61 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.4067, allocations: 3.938 kB / 0.7729 GB, free: 13.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005526/0.4072, allocations: 394.3 kB / 0.7733 GB, free: 13.16 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.4072, allocations: 0 / 0.7733 GB, free: 13.16 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001377/0.4074, allocations: 23.98 kB / 0.7733 GB, free: 13.14 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.4074, allocations: 0 / 0.7733 GB, free: 13.14 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.115e-05/0.4074, allocations: 3.938 kB / 0.7733 GB, free: 13.13 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.4074, allocations: 4 kB / 0.7733 GB, free: 13.13 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.4074, allocations: 0 / 0.7733 GB, free: 13.13 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004785/0.4079, allocations: 255.3 kB / 0.7736 GB, free: 12.86 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.32e-05/0.4079, allocations: 77.11 kB / 0.7736 GB, free: 12.77 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.771e-05/0.408, allocations: 7.938 kB / 0.7736 GB, free: 12.76 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.4081, allocations: 12.02 kB / 0.7737 GB, free: 12.75 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.802e-05/0.4081, allocations: 3.984 kB / 0.7737 GB, free: 12.75 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.948e-06/0.4081, allocations: 12 kB / 0.7737 GB, free: 12.73 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.246e-05/0.4082, allocations: 79.47 kB / 0.7738 GB, free: 12.66 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4082, allocations: 0 / 0.7738 GB, free: 12.66 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002706/0.4085, allocations: 48 kB / 0.7738 GB, free: 12.61 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.0002164/0.4087, allocations: 131.3 kB / 0.7739 GB, free: 12.47 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003058/0.409, allocations: 88.27 kB / 0.774 GB, free: 12.39 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.409, allocations: 0 / 0.774 GB, free: 12.39 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001405/0.4092, allocations: 47.91 kB / 0.7741 GB, free: 12.34 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002959/0.4095, allocations: 8 kB / 0.7741 GB, free: 12.33 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006115/0.4101, allocations: 347.3 kB / 0.7744 GB, free: 11.96 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002386/0.4103, allocations: 0.6846 MB / 0.7751 GB, free: 11.25 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.914e-05/0.4104, allocations: 19.42 kB / 0.7751 GB, free: 11.23 MB / 0.545 GB Notification: Performance of SimCode: time 2.2e-07/0.4104, allocations: 4 kB / 0.7751 GB, free: 11.22 MB / 0.545 GB Notification: Performance of Templates: time 0.002733/0.4131, allocations: 1.321 MB / 0.7764 GB, free: 9.91 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)