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.001255/0.001255, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.00126/0.00126, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.224/1.224, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002016/0.002016, allocations: 302.9 kB / 291.3 MB, free: 14.55 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8608/0.8608, allocations: 169.2 MB / 0.4988 GB, free: 4.52 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001661/0.001661, allocations: 97.22 kB / 0.5959 GB, free: 15.19 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.1402, allocations: 86.98 MB / 0.6808 GB, free: 8.207 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002384/0.1426, allocations: 1.455 MB / 0.6823 GB, free: 6.734 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009692/0.1436, allocations: 0.6351 MB / 0.6829 GB, free: 6.098 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.058e-05/0.1437, allocations: 3.938 kB / 0.6829 GB, free: 6.094 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.257e-05/0.1437, allocations: 0 / 0.6829 GB, free: 6.094 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.952e-05/0.1438, allocations: 11.86 kB / 0.6829 GB, free: 6.082 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000538/0.1443, allocations: 158.6 kB / 0.6831 GB, free: 5.93 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.357e-05/0.1444, allocations: 43.92 kB / 0.6831 GB, free: 5.887 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.821e-05/0.1444, allocations: 4 kB / 0.6831 GB, free: 5.883 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.432e-05/0.1445, allocations: 27.91 kB / 0.6831 GB, free: 5.855 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.44e-05/0.1445, allocations: 27.84 kB / 0.6832 GB, free: 5.828 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.429e-05/0.1446, allocations: 4 kB / 0.6832 GB, free: 5.824 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004575/0.145, allocations: 351.3 kB / 0.6835 GB, free: 5.48 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.852e-05/0.1451, allocations: 15.94 kB / 0.6835 GB, free: 5.465 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.112e-05/0.1451, allocations: 23.86 kB / 0.6835 GB, free: 5.441 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002658/0.1454, allocations: 187.7 kB / 0.6837 GB, free: 5.258 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.1454, allocations: 0 / 0.6837 GB, free: 5.258 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1454, allocations: 0 / 0.6837 GB, free: 5.258 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.1454, allocations: 0 / 0.6837 GB, free: 5.258 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005211/0.1459, allocations: 393 kB / 0.6841 GB, free: 4.824 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.966e-05/0.146, allocations: 12.03 kB / 0.6841 GB, free: 4.812 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.838e-05/0.146, allocations: 12.94 kB / 0.6841 GB, free: 4.801 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001081/0.1461, allocations: 180.1 kB / 0.6843 GB, free: 4.586 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.033e-05/0.1461, allocations: 4.375 kB / 0.6843 GB, free: 4.582 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.413e-05/0.1462, allocations: 12.38 kB / 0.6843 GB, free: 4.57 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002183/0.1464, allocations: 78.2 kB / 0.6844 GB, free: 4.488 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.1464, allocations: 192 / 0.6844 GB, free: 4.488 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.493e-05/0.1464, allocations: 7.938 kB / 0.6844 GB, free: 4.48 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.1464, allocations: 0 / 0.6844 GB, free: 4.48 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000225/0.1467, allocations: 51.95 kB / 0.6844 GB, free: 4.43 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000491/0.1472, allocations: 320.6 kB / 0.6847 GB, free: 4.066 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002624/0.1474, allocations: 78.53 kB / 0.6848 GB, free: 3.98 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000108/0.1476, allocations: 28.84 kB / 0.6848 GB, free: 3.949 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/0.1476, allocations: 3.984 kB / 0.6848 GB, free: 3.945 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.519e-05/0.1476, allocations: 42.5 kB / 0.6849 GB, free: 3.895 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 2.314e-06/0.1476, allocations: 0 / 0.6849 GB, free: 3.895 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.00155/0.1492, allocations: 0.6461 MB / 0.6855 GB, free: 3.156 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.995e-05/0.1492, allocations: 55.41 kB / 0.6856 GB, free: 3.09 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.746e-05/0.1493, allocations: 101.8 kB / 0.6857 GB, free: 2.98 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/0.1493, allocations: 29.7 kB / 0.6857 GB, free: 2.945 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.33e-05/0.1494, allocations: 96.03 kB / 0.6858 GB, free: 2.848 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.446e-05/0.1494, allocations: 39.39 kB / 0.6858 GB, free: 2.809 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.355e-05/0.1495, allocations: 25.72 kB / 0.6858 GB, free: 2.777 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.06e-05/0.1495, allocations: 322.8 kB / 0.6862 GB, free: 2.453 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001295/0.1497, allocations: 27.98 kB / 0.6862 GB, free: 2.426 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000117/0.1498, allocations: 35.97 kB / 0.6862 GB, free: 2.391 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002363/0.1501, allocations: 72.83 kB / 0.6863 GB, free: 2.316 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.1501, allocations: 4 kB / 0.6863 GB, free: 2.312 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003057/0.1504, allocations: 124.6 kB / 0.6864 GB, free: 2.188 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.147e-05/0.1504, allocations: 7.938 kB / 0.6864 GB, free: 2.18 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.1504, allocations: 0 / 0.6864 GB, free: 2.18 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.1504, allocations: 0 / 0.6864 GB, free: 2.18 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001397/0.1506, allocations: 27.98 kB / 0.6864 GB, free: 2.152 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.1506, allocations: 0 / 0.6864 GB, free: 2.152 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.472e-05/0.1506, allocations: 15.92 kB / 0.6865 GB, free: 2.137 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.145e-06/0.1507, allocations: 0 / 0.6865 GB, free: 2.137 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.363e-05/0.1507, allocations: 121.8 kB / 0.6866 GB, free: 2.008 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.003e-05/0.1508, allocations: 4 kB / 0.6866 GB, free: 2.004 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003547/0.1511, allocations: 125.5 kB / 0.6867 GB, free: 1.875 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.1511, allocations: 4 kB / 0.6867 GB, free: 1.871 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.1512, allocations: 4 kB / 0.6867 GB, free: 1.867 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.1512, allocations: 3.938 kB / 0.6867 GB, free: 1.863 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005243/0.1517, allocations: 382.5 kB / 0.6871 GB, free: 1.434 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.1517, allocations: 192 / 0.6871 GB, free: 1.434 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001376/0.1518, allocations: 23.98 kB / 0.6871 GB, free: 1.41 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.1519, allocations: 0 / 0.6871 GB, free: 1.41 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.1519, allocations: 11.92 kB / 0.6871 GB, free: 1.398 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.1519, allocations: 4 kB / 0.6871 GB, free: 1.395 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.1519, allocations: 4 kB / 0.6871 GB, free: 1.391 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004825/0.1524, allocations: 247.3 kB / 0.6873 GB, free: 1.133 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.524e-05/0.1524, allocations: 85.02 kB / 0.6874 GB, free: 1.031 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.207e-05/0.1525, allocations: 7.969 kB / 0.6874 GB, free: 1.023 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001136/0.1526, allocations: 11.98 kB / 0.6874 GB, free: 1.012 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.988e-05/0.1526, allocations: 12.05 kB / 0.6875 GB, free: 1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.335e-06/0.1526, allocations: 4 kB / 0.6875 GB, free: 0.9961 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.275e-05/0.1527, allocations: 79.28 kB / 0.6875 GB, free: 0.918 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1527, allocations: 3.938 kB / 0.6875 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002551/0.1529, allocations: 40 kB / 0.6876 GB, free: 0.875 MB / 494.1 MB 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.0001822/0.1531, allocations: 131.1 kB / 0.6877 GB, free: 0.7383 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003159/0.1534, allocations: 91.81 kB / 0.6878 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.1535, allocations: 4 kB / 0.6878 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001341/0.1536, allocations: 47.92 kB / 0.6878 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002702/0.1539, allocations: 4 kB / 0.6878 GB, free: 0.5938 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006313/0.1545, allocations: 339.5 kB / 0.6882 GB, free: 232 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2248/0.3793, allocations: 0.6879 MB / 0.6888 GB, free: 17.49 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.849e-05/0.3794, allocations: 20.84 kB / 0.6889 GB, free: 17.48 MB / 494.1 MB Notification: Performance of SimCode: time 5.92e-07/0.3794, allocations: 0 / 0.6889 GB, free: 17.48 MB / 494.1 MB Notification: Performance of Templates: time 0.003129/0.3825, allocations: 1.31 MB / 0.6901 GB, free: 17.46 MB / 494.1 MB 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)