Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dp_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_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.7692/0.7692, 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.00105/0.00105, allocations: 183.5 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.359/1.359, allocations: 221.3 MB / 441.4 MB, free: 4.625 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.0008707/0.0008708, allocations: 99.39 kB / 0.5124 GB, free: 24.16 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001669/0.001669, allocations: 273.3 kB / 0.5939 GB, free: 7.98 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.576e-05/3.58e-05, allocations: 4 kB / 0.6836 GB, free: 12.15 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.445/0.4451, allocations: 82.75 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1176/0.5628, allocations: 109.4 MB / 0.8712 GB, free: 15.16 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002637/0.5631, allocations: 79.94 kB / 0.8713 GB, free: 15.09 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.0113/0.5744, allocations: 4.061 MB / 0.8752 GB, free: 11.03 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.232e-06/0.5744, allocations: 0 / 0.8752 GB, free: 11.03 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.033e-06/0.5745, allocations: 0 / 0.8752 GB, free: 11.03 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.0003214/0.5748, allocations: 342.5 kB / 0.8756 GB, free: 10.65 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.296e-05/0.5749, allocations: 12.02 kB / 0.8756 GB, free: 10.64 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.812e-05/0.5749, allocations: 30.56 kB / 0.8756 GB, free: 10.6 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.626e-05/0.5749, allocations: 4 kB / 0.8756 GB, free: 10.59 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001382/0.5751, allocations: 163 kB / 0.8758 GB, free: 10.39 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.5751, allocations: 8 kB / 0.8758 GB, free: 10.39 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.319e-05/0.5751, allocations: 7.938 kB / 0.8758 GB, free: 10.38 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000122/0.5753, allocations: 41.69 kB / 0.8758 GB, free: 10.33 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.5753, allocations: 3.938 kB / 0.8758 GB, free: 10.33 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.267e-06/0.5753, allocations: 0 / 0.8758 GB, free: 10.33 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.5753, allocations: 0 / 0.8758 GB, free: 10.33 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.271e-05/0.5754, allocations: 8 kB / 0.8758 GB, free: 10.32 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001952/0.5756, allocations: 169.5 kB / 0.876 GB, free: 10.11 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002051/0.5758, allocations: 50.55 kB / 0.8761 GB, free: 10.05 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.969e-05/0.5758, allocations: 20.84 kB / 0.8761 GB, free: 10.02 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.593e-05/0.5759, allocations: 3.938 kB / 0.8761 GB, free: 10.02 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.851e-05/0.5759, allocations: 30.56 kB / 0.8761 GB, free: 9.98 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.5759, allocations: 0 / 0.8761 GB, free: 9.98 MB / 0.5417 GB Notification: Performance of matching and sorting (n=6): time 0.0006428/0.5766, allocations: 294.4 kB / 0.8764 GB, free: 9.641 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.116e-05/0.5766, allocations: 55.41 kB / 0.8764 GB, free: 9.574 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.482e-05/0.5767, allocations: 93 kB / 0.8765 GB, free: 9.477 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.818e-05/0.5767, allocations: 25.7 kB / 0.8766 GB, free: 9.445 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 3.746e-05/0.5768, allocations: 80.14 kB / 0.8766 GB, free: 9.363 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.251e-05/0.5768, allocations: 27.64 kB / 0.8767 GB, free: 9.336 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.046e-06/0.5768, allocations: 0 / 0.8767 GB, free: 9.336 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001181/0.5769, allocations: 314.8 kB / 0.877 GB, free: 9.02 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.363e-05/0.577, allocations: 8 kB / 0.877 GB, free: 9.012 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.198e-05/0.577, allocations: 12 kB / 0.877 GB, free: 9 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.774e-05/0.577, allocations: 22.28 kB / 0.877 GB, free: 8.98 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.11e-07/0.577, allocations: 0 / 0.877 GB, free: 8.98 MB / 0.5417 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.631e-05/0.5771, allocations: 65.62 kB / 0.8771 GB, free: 8.91 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/0.5772, allocations: 13.23 kB / 0.8771 GB, free: 8.898 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.5772, allocations: 3.938 kB / 0.8771 GB, free: 8.895 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.5772, allocations: 0 / 0.8771 GB, free: 8.895 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.072e-05/0.5772, allocations: 8 kB / 0.8771 GB, free: 8.887 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.5773, allocations: 0 / 0.8771 GB, free: 8.887 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.85e-05/0.5773, allocations: 4 kB / 0.8771 GB, free: 8.883 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-06/0.5773, allocations: 0 / 0.8771 GB, free: 8.883 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 7.246e-05/0.5774, allocations: 112.9 kB / 0.8772 GB, free: 8.766 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.668e-06/0.5774, allocations: 4 kB / 0.8772 GB, free: 8.762 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001412/0.5775, allocations: 69.7 kB / 0.8773 GB, free: 8.691 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.5775, allocations: 0 / 0.8773 GB, free: 8.691 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.5776, allocations: 4.125 kB / 0.8773 GB, free: 8.688 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.5776, allocations: 4 kB / 0.8773 GB, free: 8.684 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003141/0.5779, allocations: 315.3 kB / 0.8776 GB, free: 8.316 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.5779, allocations: 32 / 0.8776 GB, free: 8.316 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.023e-05/0.578, allocations: 19.98 kB / 0.8776 GB, free: 8.297 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.578, allocations: 0 / 0.8776 GB, free: 8.297 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.904e-06/0.578, allocations: 4 kB / 0.8776 GB, free: 8.293 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.578, allocations: 0 / 0.8776 GB, free: 8.293 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.578, allocations: 4 kB / 0.8776 GB, free: 8.289 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001839/0.5782, allocations: 186 kB / 0.8778 GB, free: 8.082 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.701e-05/0.5783, allocations: 93.19 kB / 0.8779 GB, free: 7.973 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.216e-05/0.5783, allocations: 0 / 0.8779 GB, free: 7.973 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.511e-05/0.5783, allocations: 4 kB / 0.8779 GB, free: 7.969 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.424e-05/0.5784, allocations: 0 / 0.8779 GB, free: 7.969 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.226e-06/0.5784, allocations: 7.984 kB / 0.8779 GB, free: 7.961 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 3.36e-05/0.5784, allocations: 79.66 kB / 0.878 GB, free: 7.883 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5784, allocations: 0 / 0.878 GB, free: 7.883 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002314/0.5787, allocations: 24 kB / 0.878 GB, free: 7.859 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (m_flow_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.0005423/0.5792, allocations: 0.8306 MB / 0.8788 GB, free: 6.992 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 9.959e-05/0.5793, allocations: 28 kB / 0.8788 GB, free: 6.965 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.5793, allocations: 0 / 0.8788 GB, free: 6.965 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 2.71e-05/0.5794, allocations: 20.06 kB / 0.8788 GB, free: 6.945 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001367/0.5795, allocations: 9.359 kB / 0.8788 GB, free: 6.938 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004442/0.58, allocations: 196 kB / 0.879 GB, free: 6.711 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002323/0.5802, allocations: 0.6887 MB / 0.8797 GB, free: 5.996 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.36e-05/0.5802, allocations: 8 kB / 0.8797 GB, free: 5.988 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.51e-05/0.5803, allocations: 15.42 kB / 0.8797 GB, free: 5.973 MB / 0.5417 GB Notification: Performance of SimCode: time 2.21e-07/0.5803, allocations: 0 / 0.8797 GB, free: 5.973 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01277/0.5931, allocations: 1.358 MB / 0.881 GB, free: 4.828 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002395/0.5934, allocations: 205.7 kB / 0.8812 GB, free: 4.602 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.501/2.094, allocations: 0 / 0.8812 GB, free: 4.602 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)