Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009873/0.0009873, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001242/0.001243, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 223.3 MB / 240 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001808/0.001808, allocations: 275 kB / 291.4 MB, free: 1.836 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9423/0.9423, allocations: 169.5 MB / 0.5 GB, free: 14.19 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004/0.0004, allocations: 13.97 kB / 0.598 GB, free: 28.32 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.134, allocations: 88.55 MB / 0.6845 GB, free: 15.41 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.001137/0.1352, allocations: 0.987 MB / 0.6855 GB, free: 14.42 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008494/0.1361, allocations: 0.569 MB / 0.686 GB, free: 13.85 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.894e-05/0.1361, allocations: 0 / 0.686 GB, free: 13.85 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.471e-05/0.1361, allocations: 4.688 kB / 0.686 GB, free: 13.85 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.139e-05/0.1361, allocations: 3.984 kB / 0.686 GB, free: 13.84 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004061/0.1366, allocations: 121.4 kB / 0.6861 GB, free: 13.73 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.402e-05/0.1366, allocations: 24.48 kB / 0.6862 GB, free: 13.7 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.788e-05/0.1367, allocations: 9.328 kB / 0.6862 GB, free: 13.7 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.17e-05/0.1367, allocations: 12 kB / 0.6862 GB, free: 13.68 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.199e-05/0.1368, allocations: 15.92 kB / 0.6862 GB, free: 13.67 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.979e-06/0.1368, allocations: 3.938 kB / 0.6862 GB, free: 13.66 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004555/0.1372, allocations: 340.6 kB / 0.6865 GB, free: 13.33 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.022e-05/0.1373, allocations: 4 kB / 0.6865 GB, free: 13.33 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.534e-05/0.1373, allocations: 29.7 kB / 0.6866 GB, free: 13.29 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001622/0.1375, allocations: 101.8 kB / 0.6867 GB, free: 13.2 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1375, allocations: 0 / 0.6867 GB, free: 13.2 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1375, allocations: 0 / 0.6867 GB, free: 13.2 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.226e-06/0.1375, allocations: 0 / 0.6867 GB, free: 13.2 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003195/0.1378, allocations: 362 kB / 0.687 GB, free: 12.8 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.972e-05/0.1378, allocations: 8.031 kB / 0.687 GB, free: 12.79 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.038e-05/0.1379, allocations: 11.86 kB / 0.687 GB, free: 12.78 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.684e-05/0.138, allocations: 163 kB / 0.6872 GB, free: 12.58 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.138, allocations: 8 kB / 0.6872 GB, free: 12.57 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.069e-05/0.138, allocations: 7.938 kB / 0.6872 GB, free: 12.56 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000106/0.1381, allocations: 50.17 kB / 0.6872 GB, free: 12.51 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.1382, allocations: 0.5 kB / 0.6872 GB, free: 12.51 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.1382, allocations: 4.906 kB / 0.6872 GB, free: 12.5 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.1382, allocations: 4 kB / 0.6872 GB, free: 12.5 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.256e-05/0.1382, allocations: 19.94 kB / 0.6873 GB, free: 12.48 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001551/0.1384, allocations: 171.3 kB / 0.6874 GB, free: 12.27 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001023/0.1385, allocations: 59.25 kB / 0.6875 GB, free: 12.2 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.282e-05/0.1386, allocations: 28.84 kB / 0.6875 GB, free: 12.17 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.906e-05/0.1386, allocations: 1.719 kB / 0.6875 GB, free: 12.17 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.177e-05/0.1386, allocations: 30.56 kB / 0.6875 GB, free: 12.13 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.072e-06/0.1386, allocations: 7.938 kB / 0.6875 GB, free: 12.12 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.001032/0.1397, allocations: 0.5789 MB / 0.6881 GB, free: 11.45 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.874e-05/0.1397, allocations: 59.36 kB / 0.6882 GB, free: 11.38 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.893e-05/0.1398, allocations: 95.84 kB / 0.6883 GB, free: 11.28 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.605e-05/0.1398, allocations: 33.7 kB / 0.6883 GB, free: 11.24 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.583e-05/0.1398, allocations: 80.14 kB / 0.6884 GB, free: 11.16 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.802e-05/0.1399, allocations: 39.95 kB / 0.6884 GB, free: 11.12 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.592e-06/0.1399, allocations: 7.938 kB / 0.6884 GB, free: 11.11 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.688e-05/0.14, allocations: 315.6 kB / 0.6887 GB, free: 10.8 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.042e-05/0.14, allocations: 24.86 kB / 0.6887 GB, free: 10.77 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.575e-05/0.1401, allocations: 22.61 kB / 0.6888 GB, free: 10.75 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.873e-05/0.1401, allocations: 28.56 kB / 0.6888 GB, free: 10.73 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.42e-07/0.1401, allocations: 0 / 0.6888 GB, free: 10.73 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001362/0.1403, allocations: 91.02 kB / 0.6889 GB, free: 10.63 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.1403, allocations: 9.562 kB / 0.6889 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.1403, allocations: 0 / 0.6889 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.1403, allocations: 0.7188 kB / 0.6889 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000109/0.1404, allocations: 23.98 kB / 0.6889 GB, free: 10.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.1405, allocations: 12.08 kB / 0.6889 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.333e-05/0.1405, allocations: 4 kB / 0.6889 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.803e-06/0.1405, allocations: 0 / 0.6889 GB, free: 10.59 MB / 494.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.621e-05/0.1406, allocations: 118.4 kB / 0.689 GB, free: 10.46 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.396e-05/0.1406, allocations: 7.906 kB / 0.689 GB, free: 10.45 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000193/0.1408, allocations: 109.7 kB / 0.6891 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.1408, allocations: 0 / 0.6891 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.1408, allocations: 7.938 kB / 0.6892 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.1409, allocations: 3.953 kB / 0.6892 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003507/0.1412, allocations: 350.5 kB / 0.6895 GB, free: 9.93 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.1412, allocations: 0 / 0.6895 GB, free: 9.93 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001071/0.1413, allocations: 23.98 kB / 0.6895 GB, free: 9.906 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1413, allocations: 0 / 0.6895 GB, free: 9.906 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.1414, allocations: 4 kB / 0.6895 GB, free: 9.902 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.143e-06/0.1414, allocations: 3.953 kB / 0.6895 GB, free: 9.898 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1414, allocations: 0 / 0.6895 GB, free: 9.898 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002261/0.1416, allocations: 223.6 kB / 0.6897 GB, free: 9.664 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.116e-05/0.1417, allocations: 77.11 kB / 0.6898 GB, free: 9.57 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.547e-05/0.1417, allocations: 3.984 kB / 0.6898 GB, free: 9.566 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.63e-05/0.1418, allocations: 4.031 kB / 0.6898 GB, free: 9.562 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.992e-05/0.1418, allocations: 7.953 kB / 0.6898 GB, free: 9.555 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.071e-05/0.1418, allocations: 11.98 kB / 0.6898 GB, free: 9.543 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.804e-05/0.1418, allocations: 75.28 kB / 0.6899 GB, free: 9.469 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1418, allocations: 0 / 0.6899 GB, free: 9.469 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002654/0.1421, allocations: 32.16 kB / 0.6899 GB, free: 9.438 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_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 (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001729/0.1423, allocations: 135.2 kB / 0.6901 GB, free: 9.297 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001304/0.1424, allocations: 63.97 kB / 0.6901 GB, free: 9.234 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.1424, allocations: 0 / 0.6901 GB, free: 9.234 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.867e-05/0.1425, allocations: 39.86 kB / 0.6902 GB, free: 9.195 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002576/0.1428, allocations: 4 kB / 0.6902 GB, free: 9.191 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004943/0.1433, allocations: 335.3 kB / 0.6905 GB, free: 8.836 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002488/0.1435, allocations: 0.6926 MB / 0.6912 GB, free: 8.117 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.347e-05/0.1436, allocations: 7.938 kB / 0.6912 GB, free: 8.109 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.807e-05/0.1436, allocations: 19.44 kB / 0.6912 GB, free: 8.09 MB / 494.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1436, allocations: 4 kB / 0.6912 GB, free: 8.086 MB / 494.1 MB Notification: Performance of Templates: time 0.002973/0.1466, allocations: 0.893 MB / 0.6921 GB, free: 7.227 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)