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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.7813/0.7813, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001118/0.001119, allocations: 182.6 kB / 187.3 MB, free: 11.89 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.463/1.463, allocations: 221.3 MB / 441.4 MB, free: 4.621 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009044/0.0009046, allocations: 96.5 kB / 0.5124 GB, free: 24.19 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00179/0.00179, allocations: 273.7 kB / 0.5939 GB, free: 7.984 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.248e-05/4.249e-05, allocations: 8 kB / 0.6834 GB, free: 12.26 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4835/0.4836, allocations: 82.76 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1264/0.61, allocations: 110.2 MB / 0.8719 GB, free: 14.39 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002402/0.6103, allocations: 87.75 kB / 0.872 GB, free: 14.31 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01275/0.623, allocations: 4.32 MB / 0.8762 GB, free: 9.996 MB / 0.5417 GB Notification: Performance of FrontEnd: time 9.72e-07/0.6231, allocations: 0 / 0.8762 GB, free: 9.996 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.162e-06/0.6231, allocations: 0 / 0.8762 GB, free: 9.996 MB / 0.5417 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.0004513/0.6235, allocations: 374.3 kB / 0.8765 GB, free: 9.586 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.054e-05/0.6236, allocations: 12.03 kB / 0.8765 GB, free: 9.574 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.141e-05/0.6237, allocations: 7.906 kB / 0.8766 GB, free: 9.566 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001433/0.6238, allocations: 163 kB / 0.8767 GB, free: 9.367 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.362e-05/0.6238, allocations: 11.98 kB / 0.8767 GB, free: 9.355 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.232e-05/0.6239, allocations: 4 kB / 0.8767 GB, free: 9.352 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000171/0.6241, allocations: 61.69 kB / 0.8768 GB, free: 9.285 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.6241, allocations: 0 / 0.8768 GB, free: 9.285 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.191e-05/0.6241, allocations: 11.98 kB / 0.8768 GB, free: 9.273 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.6241, allocations: 3.938 kB / 0.8768 GB, free: 9.27 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.823e-05/0.6242, allocations: 35.98 kB / 0.8768 GB, free: 9.234 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005782/0.6248, allocations: 324.6 kB / 0.8771 GB, free: 8.867 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001392/0.6249, allocations: 70.5 kB / 0.8772 GB, free: 8.789 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.434e-05/0.625, allocations: 20.86 kB / 0.8772 GB, free: 8.766 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.942e-05/0.625, allocations: 0 / 0.8772 GB, free: 8.766 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.841e-05/0.625, allocations: 34.56 kB / 0.8773 GB, free: 8.723 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=7): time 9.82e-07/0.625, allocations: 0 / 0.8773 GB, free: 8.723 MB / 0.5417 GB Notification: Performance of matching and sorting (n=11): time 0.001046/0.6261, allocations: 0.5742 MB / 0.8778 GB, free: 8.059 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.396e-05/0.6262, allocations: 55.34 kB / 0.8779 GB, free: 7.992 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.16e-05/0.6262, allocations: 93 kB / 0.878 GB, free: 7.895 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.166e-05/0.6263, allocations: 29.7 kB / 0.878 GB, free: 7.859 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 5.436e-05/0.6263, allocations: 88.03 kB / 0.8781 GB, free: 7.77 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.019e-05/0.6264, allocations: 39.47 kB / 0.8781 GB, free: 7.73 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.43e-06/0.6264, allocations: 0 / 0.8781 GB, free: 7.73 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001635/0.6265, allocations: 318.8 kB / 0.8784 GB, free: 7.41 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.479e-05/0.6266, allocations: 20 kB / 0.8784 GB, free: 7.391 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.39e-05/0.6267, allocations: 34.56 kB / 0.8785 GB, free: 7.359 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.75e-05/0.6267, allocations: 24.11 kB / 0.8785 GB, free: 7.336 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.51e-07/0.6267, allocations: 0 / 0.8785 GB, free: 7.336 MB / 0.5417 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000148/0.6269, allocations: 93.59 kB / 0.8786 GB, free: 7.238 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.6269, allocations: 9.234 kB / 0.8786 GB, free: 7.23 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.399e-06/0.6269, allocations: 0 / 0.8786 GB, free: 7.23 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.6269, allocations: 4 kB / 0.8786 GB, free: 7.227 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001584/0.6271, allocations: 31.98 kB / 0.8786 GB, free: 7.195 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.6271, allocations: 3.953 kB / 0.8786 GB, free: 7.191 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.785e-05/0.6272, allocations: 12 kB / 0.8786 GB, free: 7.18 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.273e-05/0.6272, allocations: 3.984 kB / 0.8786 GB, free: 7.176 MB / 0.5417 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 () * 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 7.398e-05/0.6273, allocations: 112.9 kB / 0.8788 GB, free: 7.059 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.915e-05/0.6273, allocations: 7.906 kB / 0.8788 GB, free: 7.051 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002282/0.6276, allocations: 109.7 kB / 0.8789 GB, free: 6.941 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.6276, allocations: 0 / 0.8789 GB, free: 6.941 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.6276, allocations: 0 / 0.8789 GB, free: 6.941 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.6276, allocations: 7.953 kB / 0.8789 GB, free: 6.934 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003966/0.628, allocations: 366.5 kB / 0.8792 GB, free: 6.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.628, allocations: 0 / 0.8792 GB, free: 6.52 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001534/0.6282, allocations: 23.98 kB / 0.8792 GB, free: 6.496 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.6282, allocations: 4 kB / 0.8792 GB, free: 6.492 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.353e-05/0.6282, allocations: 4 kB / 0.8793 GB, free: 6.488 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.6282, allocations: 3.953 kB / 0.8793 GB, free: 6.484 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.6282, allocations: 0 / 0.8793 GB, free: 6.484 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002697/0.6285, allocations: 231.5 kB / 0.8795 GB, free: 6.242 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.343e-05/0.6286, allocations: 81.14 kB / 0.8796 GB, free: 6.145 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.859e-05/0.6286, allocations: 3.984 kB / 0.8796 GB, free: 6.141 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000118/0.6287, allocations: 8 kB / 0.8796 GB, free: 6.133 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.024e-05/0.6287, allocations: 11.94 kB / 0.8796 GB, free: 6.121 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-06/0.6287, allocations: 4 kB / 0.8796 GB, free: 6.117 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 3.839e-05/0.6288, allocations: 79.28 kB / 0.8797 GB, free: 6.039 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6288, allocations: 4.062 kB / 0.8797 GB, free: 6.035 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.000282/0.6291, allocations: 47.92 kB / 0.8797 GB, free: 5.988 MB / 0.5417 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 () * 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.0002512/0.6293, allocations: 147.1 kB / 0.8798 GB, free: 5.832 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001548/0.6295, allocations: 63.94 kB / 0.8799 GB, free: 5.77 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.6295, allocations: 0 / 0.8799 GB, free: 5.77 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 5.493e-05/0.6296, allocations: 35.94 kB / 0.8799 GB, free: 5.734 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001701/0.6298, allocations: 7.984 kB / 0.8799 GB, free: 5.727 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000496/0.6303, allocations: 257.5 kB / 0.8802 GB, free: 5.449 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003194/0.6306, allocations: 0.6965 MB / 0.8809 GB, free: 4.727 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 5.878e-05/0.6307, allocations: 16.66 kB / 0.8809 GB, free: 4.711 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.121e-05/0.6307, allocations: 11.44 kB / 0.8809 GB, free: 4.699 MB / 0.5417 GB Notification: Performance of SimCode: time 2.1e-07/0.6307, allocations: 0 / 0.8809 GB, free: 4.699 MB / 0.5417 GB Notification: Performance of Templates: time 0.003462/0.6342, allocations: 1.042 MB / 0.8819 GB, free: 3.707 MB / 0.5417 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)