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.8969/0.8969, allocations: 143.4 MB / 158.3 MB, free: 5.781 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.001355/0.001355, allocations: 177 kB / 191.5 MB, free: 5.766 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.59/1.59, allocations: 223.2 MB / 447.7 MB, free: 6.559 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.0009658/0.0009658, allocations: 88.27 kB / 0.5187 GB, free: 2.902 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001754/0.001754, allocations: 274.6 kB / 0.6005 GB, free: 48.97 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004403/0.0004405, allocations: 15.98 kB / 0.693 GB, free: 2.195 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4257/0.4261, allocations: 82.77 MB / 0.7738 GB, free: 26.18 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1585/0.5847, allocations: 109.5 MB / 0.8807 GB, free: 12.59 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002222/0.585, allocations: 79.95 kB / 0.8808 GB, free: 12.51 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01264/0.5977, allocations: 4.052 MB / 0.8847 GB, free: 8.453 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.473e-06/0.5977, allocations: 3.938 kB / 0.8847 GB, free: 8.449 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.512e-06/0.5977, allocations: 4 kB / 0.8847 GB, free: 8.445 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.0004043/0.5981, allocations: 351.3 kB / 0.8851 GB, free: 8.055 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/0.5982, allocations: 8.031 kB / 0.8851 GB, free: 8.047 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.254e-05/0.5982, allocations: 30.56 kB / 0.8851 GB, free: 8.008 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.829e-05/0.5983, allocations: 4 kB / 0.8851 GB, free: 8.004 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001426/0.5984, allocations: 174.9 kB / 0.8853 GB, free: 7.793 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.061e-05/0.5984, allocations: 0 / 0.8853 GB, free: 7.793 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.359e-05/0.5985, allocations: 8 kB / 0.8853 GB, free: 7.785 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001153/0.5986, allocations: 45.62 kB / 0.8853 GB, free: 7.734 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.331e-06/0.5986, allocations: 0 / 0.8853 GB, free: 7.734 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.995e-06/0.5986, allocations: 0 / 0.8853 GB, free: 7.734 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.5986, allocations: 4 kB / 0.8853 GB, free: 7.73 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.052e-05/0.5987, allocations: 4 kB / 0.8853 GB, free: 7.727 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002106/0.5989, allocations: 157.6 kB / 0.8855 GB, free: 7.523 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002319/0.5991, allocations: 46.61 kB / 0.8855 GB, free: 7.469 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/0.5992, allocations: 3.984 kB / 0.8855 GB, free: 7.465 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.761e-05/0.5992, allocations: 38.59 kB / 0.8856 GB, free: 7.418 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=4): time 1.243e-06/0.5992, allocations: 0 / 0.8856 GB, free: 7.418 MB / 0.5417 GB Notification: Performance of matching and sorting (n=6): time 0.0007741/0.6, allocations: 310.2 kB / 0.8859 GB, free: 7.062 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.015e-05/0.6001, allocations: 55.41 kB / 0.8859 GB, free: 6.996 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.729e-05/0.6001, allocations: 85 kB / 0.886 GB, free: 6.906 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.6002, allocations: 33.7 kB / 0.886 GB, free: 6.867 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.537e-05/0.6002, allocations: 84.14 kB / 0.8861 GB, free: 6.781 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.598e-05/0.6003, allocations: 27.58 kB / 0.8861 GB, free: 6.754 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.781e-06/0.6003, allocations: 4 kB / 0.8861 GB, free: 6.75 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001417/0.6004, allocations: 310.8 kB / 0.8864 GB, free: 6.438 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.358e-05/0.6005, allocations: 11.98 kB / 0.8864 GB, free: 6.426 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.876e-05/0.6005, allocations: 12 kB / 0.8865 GB, free: 6.414 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.61e-05/0.6006, allocations: 15.98 kB / 0.8865 GB, free: 6.398 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.6006, allocations: 3.953 kB / 0.8865 GB, free: 6.395 MB / 0.5417 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001421/0.6007, allocations: 65.77 kB / 0.8865 GB, free: 6.324 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.6008, allocations: 12 kB / 0.8865 GB, free: 6.312 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.044e-06/0.6008, allocations: 0 / 0.8865 GB, free: 6.312 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.6008, allocations: 0 / 0.8865 GB, free: 6.312 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.013e-05/0.6009, allocations: 15.98 kB / 0.8866 GB, free: 6.297 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.6009, allocations: 4 kB / 0.8866 GB, free: 6.293 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.735e-05/0.6009, allocations: 0 / 0.8866 GB, free: 6.293 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.213e-06/0.601, allocations: 0 / 0.8866 GB, free: 6.293 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 () * Number of clocked 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 0.0001183/0.6011, allocations: 114.4 kB / 0.8867 GB, free: 6.172 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.625e-05/0.6011, allocations: 7.859 kB / 0.8867 GB, free: 6.164 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001912/0.6013, allocations: 77.53 kB / 0.8868 GB, free: 6.082 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.6013, allocations: 7.984 kB / 0.8868 GB, free: 6.074 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.6013, allocations: 0 / 0.8868 GB, free: 6.074 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.6013, allocations: 0 / 0.8868 GB, free: 6.074 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004566/0.6018, allocations: 311.4 kB / 0.8871 GB, free: 5.711 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.6018, allocations: 0 / 0.8871 GB, free: 5.711 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.079e-05/0.6019, allocations: 12 kB / 0.8871 GB, free: 5.699 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.6019, allocations: 0 / 0.8871 GB, free: 5.699 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.602, allocations: 0 / 0.8871 GB, free: 5.699 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/0.602, allocations: 8.016 kB / 0.8871 GB, free: 5.691 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.656e-06/0.602, allocations: 4 kB / 0.8871 GB, free: 5.688 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002577/0.6023, allocations: 190.2 kB / 0.8873 GB, free: 5.477 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 6.75e-05/0.6023, allocations: 85 kB / 0.8873 GB, free: 5.375 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.683e-05/0.6024, allocations: 8.094 kB / 0.8874 GB, free: 5.367 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/0.6025, allocations: 0 / 0.8874 GB, free: 5.367 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.289e-05/0.6025, allocations: 8.062 kB / 0.8874 GB, free: 5.359 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.109e-05/0.6026, allocations: 4 kB / 0.8874 GB, free: 5.355 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 6.148e-05/0.6026, allocations: 83.27 kB / 0.8874 GB, free: 5.273 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.115e-06/0.6026, allocations: 0 / 0.8874 GB, free: 5.273 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0004228/0.6031, allocations: 23.94 kB / 0.8875 GB, free: 5.25 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 () * Number of clocked 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.0007777/0.6039, allocations: 0.8311 MB / 0.8883 GB, free: 4.387 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001053/0.604, allocations: 31.98 kB / 0.8883 GB, free: 4.355 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.604, allocations: 0 / 0.8883 GB, free: 4.355 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 2.611e-05/0.604, allocations: 15.94 kB / 0.8883 GB, free: 4.34 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001395/0.6042, allocations: 4.812 kB / 0.8883 GB, free: 4.336 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007906/0.605, allocations: 0.4949 MB / 0.8888 GB, free: 3.789 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003018/0.6053, allocations: 0.6848 MB / 0.8895 GB, free: 3.078 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.065e-05/0.6053, allocations: 3.984 kB / 0.8895 GB, free: 3.074 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.074e-05/0.6054, allocations: 19.42 kB / 0.8895 GB, free: 3.055 MB / 0.5417 GB Notification: Performance of SimCode: time 5.11e-07/0.6054, allocations: 3.938 kB / 0.8895 GB, free: 3.051 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01194/0.6173, allocations: 1.358 MB / 0.8908 GB, free: 1.91 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002017/0.6176, allocations: 233.2 kB / 0.8911 GB, free: 1.668 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.644/2.261, allocations: 2.406 kB / 0.8911 GB, free: 1.668 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)