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.7454/0.7454, allocations: 141.7 MB / 154.3 MB, free: 15.48 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.001039/0.001039, allocations: 188.5 kB / 187.3 MB, free: 11.88 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.352/1.352, allocations: 221.3 MB / 441.4 MB, free: 4.598 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.0009081/0.0009082, allocations: 95.56 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.001752/0.001752, allocations: 273.1 kB / 0.5939 GB, free: 7.953 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.591e-05/4.593e-05, allocations: 4 kB / 0.6835 GB, free: 12.13 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4209/0.421, allocations: 82.77 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1155/0.5365, allocations: 109.3 MB / 0.8711 GB, free: 15.24 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002431/0.5368, allocations: 75.95 kB / 0.8712 GB, free: 15.16 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.008277/0.5451, allocations: 2.879 MB / 0.874 GB, free: 12.29 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.292e-06/0.5451, allocations: 3.938 kB / 0.874 GB, free: 12.29 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 5.901e-06/0.5451, allocations: 0 / 0.874 GB, free: 12.29 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003067/0.5454, allocations: 342.4 kB / 0.8743 GB, free: 11.91 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.5455, allocations: 12.03 kB / 0.8743 GB, free: 11.89 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.687e-05/0.5455, allocations: 34.56 kB / 0.8744 GB, free: 11.85 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.402e-05/0.5456, allocations: 4 kB / 0.8744 GB, free: 11.85 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001122/0.5457, allocations: 171 kB / 0.8745 GB, free: 11.64 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.037e-05/0.5457, allocations: 0 / 0.8745 GB, free: 11.64 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.808e-05/0.5457, allocations: 0 / 0.8745 GB, free: 11.64 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001172/0.5458, allocations: 45.62 kB / 0.8746 GB, free: 11.59 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.834e-06/0.5459, allocations: 0 / 0.8746 GB, free: 11.59 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.618e-06/0.5459, allocations: 0 / 0.8746 GB, free: 11.59 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.5459, allocations: 0 / 0.8746 GB, free: 11.59 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.049e-05/0.5459, allocations: 12 kB / 0.8746 GB, free: 11.58 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001753/0.5461, allocations: 165.5 kB / 0.8747 GB, free: 11.37 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001726/0.5463, allocations: 42.61 kB / 0.8748 GB, free: 11.32 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.59e-05/0.5463, allocations: 20.8 kB / 0.8748 GB, free: 11.29 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.165e-05/0.5464, allocations: 3.938 kB / 0.8748 GB, free: 11.29 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.276e-05/0.5464, allocations: 34.56 kB / 0.8748 GB, free: 11.25 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.5464, allocations: 0 / 0.8748 GB, free: 11.25 MB / 0.5417 GB Notification: Performance of matching and sorting (n=6): time 0.0005818/0.547, allocations: 310.2 kB / 0.8751 GB, free: 10.89 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.528e-05/0.547, allocations: 51.41 kB / 0.8752 GB, free: 10.83 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.807e-05/0.5471, allocations: 92.98 kB / 0.8753 GB, free: 10.73 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.524e-05/0.5471, allocations: 25.7 kB / 0.8753 GB, free: 10.7 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.114e-05/0.5472, allocations: 88.08 kB / 0.8754 GB, free: 10.61 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.651e-05/0.5472, allocations: 19.7 kB / 0.8754 GB, free: 10.59 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.819e-06/0.5472, allocations: 4 kB / 0.8754 GB, free: 10.59 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.5473, allocations: 314.8 kB / 0.8757 GB, free: 10.27 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.373e-05/0.5474, allocations: 12 kB / 0.8757 GB, free: 10.26 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.006e-05/0.5474, allocations: 12 kB / 0.8757 GB, free: 10.25 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.099e-05/0.5474, allocations: 15.94 kB / 0.8757 GB, free: 10.23 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.11e-07/0.5474, allocations: 0 / 0.8757 GB, free: 10.23 MB / 0.5417 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.848e-05/0.5475, allocations: 69.61 kB / 0.8758 GB, free: 10.16 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.5476, allocations: 5.562 kB / 0.8758 GB, free: 10.16 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.5476, allocations: 0 / 0.8758 GB, free: 10.16 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.059e-05/0.5476, allocations: 0 / 0.8758 GB, free: 10.16 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.106e-05/0.5476, allocations: 16 kB / 0.8758 GB, free: 10.14 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.822e-06/0.5476, allocations: 0 / 0.8758 GB, free: 10.14 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.636e-05/0.5477, allocations: 4 kB / 0.8758 GB, free: 10.14 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-06/0.5477, allocations: 0 / 0.8758 GB, free: 10.14 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.568e-05/0.5478, allocations: 108.9 kB / 0.8759 GB, free: 10.02 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.737e-06/0.5478, allocations: 0 / 0.8759 GB, free: 10.02 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001445/0.5479, allocations: 77.83 kB / 0.876 GB, free: 9.945 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.5479, allocations: 4 kB / 0.876 GB, free: 9.941 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.5479, allocations: 0 / 0.876 GB, free: 9.941 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.5479, allocations: 0 / 0.876 GB, free: 9.941 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003285/0.5483, allocations: 319.3 kB / 0.8763 GB, free: 9.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.5483, allocations: 4 kB / 0.8763 GB, free: 9.566 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.622e-05/0.5484, allocations: 11.98 kB / 0.8763 GB, free: 9.555 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.5484, allocations: 0 / 0.8763 GB, free: 9.555 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.5484, allocations: 8 kB / 0.8763 GB, free: 9.547 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.5484, allocations: 0 / 0.8763 GB, free: 9.547 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.5484, allocations: 0 / 0.8763 GB, free: 9.547 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001978/0.5486, allocations: 194 kB / 0.8765 GB, free: 9.332 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.949e-05/0.5487, allocations: 85.09 kB / 0.8766 GB, free: 9.23 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.423e-05/0.5487, allocations: 4.031 kB / 0.8766 GB, free: 9.227 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.942e-05/0.5487, allocations: 3.938 kB / 0.8766 GB, free: 9.223 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.695e-05/0.5488, allocations: 7.984 kB / 0.8766 GB, free: 9.215 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.628e-06/0.5488, allocations: 0 / 0.8766 GB, free: 9.215 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 3.444e-05/0.5488, allocations: 83.28 kB / 0.8767 GB, free: 9.133 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5488, allocations: 64 / 0.8767 GB, free: 9.133 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002264/0.5491, allocations: 27.94 kB / 0.8767 GB, free: 9.105 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.0005166/0.5496, allocations: 0.8226 MB / 0.8775 GB, free: 8.246 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 9.386e-05/0.5497, allocations: 32.06 kB / 0.8776 GB, free: 8.215 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.5497, allocations: 4 kB / 0.8776 GB, free: 8.211 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 2.798e-05/0.5497, allocations: 20.12 kB / 0.8776 GB, free: 8.191 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001337/0.5499, allocations: 0 / 0.8776 GB, free: 8.191 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004597/0.5503, allocations: 196.2 kB / 0.8778 GB, free: 7.965 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002449/0.5506, allocations: 0.6848 MB / 0.8784 GB, free: 7.254 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.358e-05/0.5506, allocations: 8 kB / 0.8784 GB, free: 7.246 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.981e-05/0.5507, allocations: 11.44 kB / 0.8785 GB, free: 7.234 MB / 0.5417 GB Notification: Performance of SimCode: time 4.91e-07/0.5507, allocations: 0 / 0.8785 GB, free: 7.234 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01218/0.5629, allocations: 1.386 MB / 0.8798 GB, free: 6.074 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001984/0.5631, allocations: 206.9 kB / 0.88 GB, free: 5.852 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.492/2.055, allocations: 7.375 kB / 0.88 GB, free: 5.848 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)