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.001004/0.001004, allocations: 113.7 kB / 16.37 MB, free: 6.012 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.00101/0.00101, allocations: 189.1 kB / 17.3 MB, free: 5.613 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.259/1.259, 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.001997/0.001997, allocations: 283.2 kB / 291.4 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.9001/0.9001, allocations: 169.3 MB / 0.4989 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001701/0.001701, allocations: 88.98 kB / 0.5967 GB, free: 14.41 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1476/0.1493, allocations: 86.97 MB / 0.6816 GB, free: 7.43 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002354/0.1517, allocations: 1.461 MB / 0.683 GB, free: 5.957 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009477/0.1526, allocations: 0.6389 MB / 0.6837 GB, free: 5.316 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.992e-05/0.1527, allocations: 0 / 0.6837 GB, free: 5.316 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.584e-05/0.1527, allocations: 7.938 kB / 0.6837 GB, free: 5.309 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.251e-05/0.1528, allocations: 3.938 kB / 0.6837 GB, free: 5.305 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004937/0.1533, allocations: 159.4 kB / 0.6838 GB, free: 5.148 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.874e-05/0.1534, allocations: 51.84 kB / 0.6839 GB, free: 5.098 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.621e-05/0.1534, allocations: 4 kB / 0.6839 GB, free: 5.094 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.192e-05/0.1535, allocations: 23.91 kB / 0.6839 GB, free: 5.07 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.431e-05/0.1535, allocations: 35.84 kB / 0.6839 GB, free: 5.035 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.31e-05/0.1535, allocations: 4 kB / 0.6839 GB, free: 5.031 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004422/0.154, allocations: 347.3 kB / 0.6843 GB, free: 4.691 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.574e-05/0.154, allocations: 8 kB / 0.6843 GB, free: 4.684 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.753e-05/0.154, allocations: 31.84 kB / 0.6843 GB, free: 4.652 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002458/0.1543, allocations: 175.5 kB / 0.6845 GB, free: 4.48 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1543, allocations: 0 / 0.6845 GB, free: 4.48 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1543, allocations: 0 / 0.6845 GB, free: 4.48 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.1543, allocations: 0 / 0.6845 GB, free: 4.48 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.0005425/0.1549, allocations: 403.3 kB / 0.6849 GB, free: 4.035 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.1549, allocations: 12.03 kB / 0.6849 GB, free: 4.023 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.558e-05/0.155, allocations: 0.9375 kB / 0.6849 GB, free: 4.023 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001186/0.1551, allocations: 180.2 kB / 0.685 GB, free: 3.809 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.43e-05/0.1551, allocations: 8.375 kB / 0.6851 GB, free: 3.801 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.067e-05/0.1551, allocations: 4.375 kB / 0.6851 GB, free: 3.797 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002062/0.1553, allocations: 78.16 kB / 0.6851 GB, free: 3.715 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.1554, allocations: 192 / 0.6851 GB, free: 3.715 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.303e-05/0.1554, allocations: 7.938 kB / 0.6851 GB, free: 3.707 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.1554, allocations: 8 kB / 0.6851 GB, free: 3.699 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001962/0.1556, allocations: 47.95 kB / 0.6852 GB, free: 3.652 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004737/0.1561, allocations: 320.6 kB / 0.6855 GB, free: 3.289 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002363/0.1563, allocations: 82.53 kB / 0.6856 GB, free: 3.199 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.511e-05/0.1564, allocations: 28.84 kB / 0.6856 GB, free: 3.168 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.1564, allocations: 0 / 0.6856 GB, free: 3.168 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.244e-05/0.1565, allocations: 34.55 kB / 0.6856 GB, free: 3.125 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 9.12e-07/0.1565, allocations: 0 / 0.6856 GB, free: 3.125 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.001446/0.1579, allocations: 0.6576 MB / 0.6863 GB, free: 2.375 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.098e-05/0.158, allocations: 59.33 kB / 0.6863 GB, free: 2.305 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.18e-05/0.158, allocations: 101.8 kB / 0.6864 GB, free: 2.195 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.391e-05/0.1581, allocations: 33.7 kB / 0.6865 GB, free: 2.156 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.814e-05/0.1581, allocations: 88.03 kB / 0.6865 GB, free: 2.066 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.509e-05/0.1582, allocations: 47.39 kB / 0.6866 GB, free: 2.02 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.222e-05/0.1582, allocations: 29.7 kB / 0.6866 GB, free: 1.984 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.1583, allocations: 314.8 kB / 0.6869 GB, free: 1.668 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001164/0.1584, allocations: 31.98 kB / 0.687 GB, free: 1.637 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001045/0.1585, allocations: 35.97 kB / 0.687 GB, free: 1.602 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002027/0.1588, allocations: 72.08 kB / 0.6871 GB, free: 1.531 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.52e-07/0.1588, allocations: 0 / 0.6871 GB, free: 1.531 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002785/0.159, allocations: 121.6 kB / 0.6872 GB, free: 1.406 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.1591, allocations: 4 kB / 0.6872 GB, free: 1.402 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.1591, allocations: 0 / 0.6872 GB, free: 1.402 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.1591, allocations: 0 / 0.6872 GB, free: 1.402 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/0.1592, allocations: 23.98 kB / 0.6872 GB, free: 1.379 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.1592, allocations: 8 kB / 0.6872 GB, free: 1.371 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.697e-05/0.1593, allocations: 11.92 kB / 0.6872 GB, free: 1.359 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.023e-05/0.1593, allocations: 4 kB / 0.6872 GB, free: 1.355 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.911e-05/0.1594, allocations: 113.8 kB / 0.6873 GB, free: 1.234 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.905e-05/0.1594, allocations: 7.938 kB / 0.6873 GB, free: 1.227 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003808/0.1598, allocations: 129.5 kB / 0.6875 GB, free: 1.094 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.878e-06/0.1598, allocations: 7.938 kB / 0.6875 GB, free: 1.086 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.1599, allocations: 4 kB / 0.6875 GB, free: 1.082 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.1599, allocations: 3.938 kB / 0.6875 GB, free: 1.078 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005266/0.1604, allocations: 374.4 kB / 0.6878 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1604, allocations: 0 / 0.6878 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001378/0.1605, allocations: 35.97 kB / 0.6879 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.1606, allocations: 4 kB / 0.6879 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.1606, allocations: 3.938 kB / 0.6879 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.1606, allocations: 0 / 0.6879 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1606, allocations: 4 kB / 0.6879 GB, free: 0.6094 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004415/0.161, allocations: 247.3 kB / 0.6881 GB, free: 360 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.169e-05/0.1611, allocations: 88.98 kB / 0.6882 GB, free: 252 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.677e-05/0.1611, allocations: 3.938 kB / 0.6882 GB, free: 248 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001101/0.1612, allocations: 11.98 kB / 0.6882 GB, free: 236 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.821e-05/0.1613, allocations: 4.062 kB / 0.6882 GB, free: 232 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.025e-05/0.1613, allocations: 11.98 kB / 0.6882 GB, free: 220 kB / 494.1 MB Notification: Performance of sorting global known variables: time 3.843e-05/0.1613, allocations: 83.28 kB / 0.6883 GB, free: 136 kB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1613, allocations: 0 / 0.6883 GB, free: 136 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002586/0.1616, allocations: 28 kB / 0.6883 GB, free: 108 kB / 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.237/0.3986, allocations: 136.7 kB / 0.6885 GB, free: 18.24 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004457/0.3991, allocations: 82.78 kB / 0.6885 GB, free: 18.24 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.3991, allocations: 2.125 kB / 0.6885 GB, free: 18.24 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001364/0.3993, allocations: 42.2 kB / 0.6886 GB, free: 18.24 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003352/0.3996, allocations: 10.59 kB / 0.6886 GB, free: 18.24 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006529/0.4003, allocations: 325.2 kB / 0.6889 GB, free: 18.09 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001153/0.4004, allocations: 0.6905 MB / 0.6896 GB, free: 17.4 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.566e-05/0.4005, allocations: 15.03 kB / 0.6896 GB, free: 17.4 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.89e-05/0.4005, allocations: 16.66 kB / 0.6896 GB, free: 17.39 MB / 494.1 MB Notification: Performance of SimCode: time 3.81e-07/0.4005, allocations: 0 / 0.6896 GB, free: 17.39 MB / 494.1 MB Notification: Performance of Templates: time 0.003768/0.4043, allocations: 1.134 MB / 0.6907 GB, free: 17.34 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)