Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.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: "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8412/0.8412, allocations: 141.8 MB / 149.3 MB, free: 9.219 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 180.9 kB / 182.2 MB, free: 9.438 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.46/1.46, allocations: 221.5 MB / 436.4 MB, free: 13.34 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.0009273/0.0009271, allocations: 96.02 kB / 0.5074 GB, free: 10.18 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001925/0.001925, allocations: 276.3 kB / 0.5889 GB, free: 54.68 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.345e-05/2.346e-05, allocations: 4 kB / 0.6766 GB, free: 12.75 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.472/0.4721, allocations: 82.77 MB / 0.7575 GB, free: 31.93 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1476/0.6198, allocations: 108.6 MB / 0.8635 GB, free: 3.168 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000226/0.62, allocations: 79.95 kB / 0.8636 GB, free: 3.09 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.008362/0.6284, allocations: 2.861 MB / 0.8664 GB, free: 232 kB / 0.5261 GB Notification: Performance of FrontEnd: time 2.024e-06/0.6285, allocations: 0 / 0.8664 GB, free: 232 kB / 0.5261 GB Notification: Performance of Transformations before backend: time 8.035e-06/0.6285, allocations: 0 / 0.8664 GB, free: 232 kB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003276/0.6288, allocations: 346.4 kB / 0.8667 GB, free: 15.84 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/0.6289, allocations: 12.03 kB / 0.8668 GB, free: 15.83 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.249e-05/0.6289, allocations: 4 kB / 0.8668 GB, free: 15.83 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000133/0.629, allocations: 171 kB / 0.8669 GB, free: 15.62 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/0.6291, allocations: 0 / 0.8669 GB, free: 15.62 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.095e-05/0.6291, allocations: 7.906 kB / 0.8669 GB, free: 15.61 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.867e-05/0.6292, allocations: 8 kB / 0.8669 GB, free: 15.61 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.532e-05/0.6293, allocations: 37.69 kB / 0.867 GB, free: 15.56 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.6293, allocations: 0 / 0.867 GB, free: 15.56 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.257e-05/0.6293, allocations: 0 / 0.867 GB, free: 15.56 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.167e-06/0.6293, allocations: 3.938 kB / 0.867 GB, free: 15.56 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001719/0.6295, allocations: 142.3 kB / 0.8671 GB, free: 15.38 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00017/0.6297, allocations: 38.53 kB / 0.8671 GB, free: 15.34 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.439e-05/0.6297, allocations: 12.86 kB / 0.8672 GB, free: 15.32 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.288e-05/0.6297, allocations: 12.02 kB / 0.8672 GB, free: 15.31 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.6298, allocations: 30.56 kB / 0.8672 GB, free: 15.27 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.6298, allocations: 0 / 0.8672 GB, free: 15.27 MB / 0.5417 GB Notification: Performance of matching and sorting (n=6): time 0.0005331/0.6303, allocations: 290.4 kB / 0.8675 GB, free: 14.93 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.005e-05/0.6303, allocations: 51.41 kB / 0.8675 GB, free: 14.87 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.234e-05/0.6304, allocations: 89 kB / 0.8676 GB, free: 14.78 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.6304, allocations: 25.7 kB / 0.8676 GB, free: 14.75 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 3.717e-05/0.6305, allocations: 84.14 kB / 0.8677 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.602e-05/0.6305, allocations: 19.7 kB / 0.8677 GB, free: 14.64 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.037e-06/0.6305, allocations: 0 / 0.8677 GB, free: 14.64 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001149/0.6306, allocations: 314.8 kB / 0.868 GB, free: 14.32 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.018e-05/0.6307, allocations: 12 kB / 0.868 GB, free: 14.31 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.724e-05/0.6307, allocations: 8 kB / 0.8681 GB, free: 14.3 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.297e-05/0.6307, allocations: 19.92 kB / 0.8681 GB, free: 14.29 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.51e-07/0.6307, allocations: 0 / 0.8681 GB, free: 14.29 MB / 0.5417 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.832e-05/0.6308, allocations: 61.64 kB / 0.8681 GB, free: 14.22 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.6309, allocations: 5.25 kB / 0.8681 GB, free: 14.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.6309, allocations: 4 kB / 0.8681 GB, free: 14.21 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.6309, allocations: 0 / 0.8681 GB, free: 14.21 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.902e-05/0.6309, allocations: 8 kB / 0.8681 GB, free: 14.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.359e-06/0.631, allocations: 0 / 0.8681 GB, free: 14.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.744e-05/0.631, allocations: 4 kB / 0.8681 GB, free: 14.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.631, allocations: 4 kB / 0.8682 GB, free: 14.2 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 (7): * Single equations (assignments): 7 * 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 6.559e-05/0.6311, allocations: 101 kB / 0.8682 GB, free: 14.09 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.429e-05/0.6312, allocations: 69.52 kB / 0.8683 GB, free: 14.02 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.057e-06/0.6312, allocations: 3.906 kB / 0.8683 GB, free: 14.01 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001338/0.6313, allocations: 66.08 kB / 0.8684 GB, free: 13.94 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.6313, allocations: 4 kB / 0.8684 GB, free: 13.93 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.6313, allocations: 0 / 0.8684 GB, free: 13.93 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.6313, allocations: 4 kB / 0.8684 GB, free: 13.93 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002972/0.6316, allocations: 284.1 kB / 0.8687 GB, free: 13.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.6317, allocations: 4.062 kB / 0.8687 GB, free: 13.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.044e-05/0.6317, allocations: 12 kB / 0.8687 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.6317, allocations: 0 / 0.8687 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.6318, allocations: 3.984 kB / 0.8687 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.45e-06/0.6318, allocations: 5.172 kB / 0.8687 GB, free: 13.58 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.6318, allocations: 3.938 kB / 0.8687 GB, free: 13.58 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001808/0.632, allocations: 194 kB / 0.8689 GB, free: 13.36 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.196e-05/0.632, allocations: 85 kB / 0.869 GB, free: 13.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.454e-05/0.632, allocations: 4.031 kB / 0.869 GB, free: 13.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.354e-05/0.6321, allocations: 0 / 0.869 GB, free: 13.26 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.793e-05/0.6321, allocations: 0 / 0.869 GB, free: 13.26 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.354e-06/0.6321, allocations: 4 kB / 0.869 GB, free: 13.25 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 3.519e-05/0.6322, allocations: 83.34 kB / 0.869 GB, free: 13.17 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6322, allocations: 0 / 0.869 GB, free: 13.17 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002464/0.6324, allocations: 27.92 kB / 0.8691 GB, free: 13.14 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (dp_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0005183/0.633, allocations: 0.8075 MB / 0.8699 GB, free: 12.3 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 8.326e-05/0.6331, allocations: 32.06 kB / 0.8699 GB, free: 12.27 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.6331, allocations: 0 / 0.8699 GB, free: 12.27 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 2.746e-05/0.6331, allocations: 23.92 kB / 0.8699 GB, free: 12.25 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000154/0.6333, allocations: 0.6562 kB / 0.8699 GB, free: 12.25 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004712/0.6337, allocations: 179.1 kB / 0.8701 GB, free: 12.04 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002408/0.634, allocations: 0.6859 MB / 0.8708 GB, free: 11.32 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.627e-05/0.634, allocations: 11.92 kB / 0.8708 GB, free: 11.31 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.004e-05/0.6341, allocations: 15.44 kB / 0.8708 GB, free: 11.3 MB / 0.5417 GB Notification: Performance of SimCode: time 2.8e-07/0.6341, allocations: 0 / 0.8708 GB, free: 11.3 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01891/0.653, allocations: 1.064 MB / 0.8718 GB, free: 10.27 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002152/0.6533, allocations: 198.7 kB / 0.872 GB, free: 10.01 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.571/2.224, allocations: 0 / 0.872 GB, free: 10.01 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)