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: "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",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.7491/0.7491, 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.00114/0.00114, allocations: 177.6 kB / 187.3 MB, free: 11.9 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.417/1.417, allocations: 221.3 MB / 441.4 MB, free: 4.66 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.0008421/0.0008425, allocations: 92.31 kB / 0.5124 GB, free: 24.18 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001665/0.001665, allocations: 281.9 kB / 0.5939 GB, free: 7.977 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.36e-05/3.374e-05, allocations: 4 kB / 0.6835 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4007/0.4008, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1208/0.5216, allocations: 110.2 MB / 0.872 GB, free: 14.34 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002626/0.5219, allocations: 83.94 kB / 0.8721 GB, free: 14.26 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01258/0.5345, allocations: 4.319 MB / 0.8763 GB, free: 9.957 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.663e-06/0.5345, allocations: 0 / 0.8763 GB, free: 9.957 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.174e-06/0.5346, allocations: 0 / 0.8763 GB, free: 9.957 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.0004547/0.535, allocations: 382.3 kB / 0.8766 GB, free: 9.539 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.5351, allocations: 8.031 kB / 0.8766 GB, free: 9.531 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.885e-05/0.5351, allocations: 34.56 kB / 0.8767 GB, free: 9.488 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.855e-05/0.5352, allocations: 7.906 kB / 0.8767 GB, free: 9.48 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001312/0.5353, allocations: 171 kB / 0.8768 GB, free: 9.273 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.406e-05/0.5353, allocations: 4 kB / 0.8768 GB, free: 9.27 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.358e-05/0.5354, allocations: 8 kB / 0.8769 GB, free: 9.262 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001571/0.5355, allocations: 76.36 kB / 0.8769 GB, free: 9.184 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.5356, allocations: 4 kB / 0.8769 GB, free: 9.18 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.5356, allocations: 0 / 0.8769 GB, free: 9.18 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.5356, allocations: 4 kB / 0.8769 GB, free: 9.176 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.631e-05/0.5357, allocations: 32 kB / 0.877 GB, free: 9.145 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005812/0.5362, allocations: 336.6 kB / 0.8773 GB, free: 8.766 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001138/0.5364, allocations: 62.5 kB / 0.8773 GB, free: 8.695 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.545e-05/0.5364, allocations: 20.86 kB / 0.8774 GB, free: 8.672 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.185e-05/0.5365, allocations: 0 / 0.8774 GB, free: 8.672 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.333e-05/0.5365, allocations: 34.56 kB / 0.8774 GB, free: 8.629 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=7): time 1.042e-06/0.5365, allocations: 4 kB / 0.8774 GB, free: 8.625 MB / 0.5417 GB Notification: Performance of matching and sorting (n=11): time 0.0009403/0.5374, allocations: 0.5696 MB / 0.878 GB, free: 7.965 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.023e-05/0.5375, allocations: 51.41 kB / 0.878 GB, free: 7.902 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.605e-05/0.5375, allocations: 93 kB / 0.8781 GB, free: 7.805 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.436e-05/0.5376, allocations: 29.7 kB / 0.8781 GB, free: 7.77 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.859e-05/0.5376, allocations: 92.03 kB / 0.8782 GB, free: 7.676 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.143e-05/0.5377, allocations: 35.45 kB / 0.8782 GB, free: 7.641 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.503e-06/0.5377, allocations: 8 kB / 0.8783 GB, free: 7.633 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001229/0.5378, allocations: 314.8 kB / 0.8786 GB, free: 7.316 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.714e-05/0.5379, allocations: 27.94 kB / 0.8786 GB, free: 7.289 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.778e-05/0.5379, allocations: 20 kB / 0.8786 GB, free: 7.27 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.753e-05/0.538, allocations: 23.98 kB / 0.8786 GB, free: 7.246 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.01e-07/0.538, allocations: 0 / 0.8786 GB, free: 7.246 MB / 0.5417 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001463/0.5381, allocations: 101.7 kB / 0.8787 GB, free: 7.141 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.5381, allocations: 4 kB / 0.8787 GB, free: 7.137 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.5382, allocations: 0 / 0.8787 GB, free: 7.137 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.5382, allocations: 192 / 0.8787 GB, free: 7.137 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001572/0.5383, allocations: 39.88 kB / 0.8788 GB, free: 7.098 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.5384, allocations: 0 / 0.8788 GB, free: 7.098 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.849e-05/0.5384, allocations: 11.98 kB / 0.8788 GB, free: 7.086 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.847e-06/0.5384, allocations: 4.094 kB / 0.8788 GB, free: 7.082 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.546e-05/0.5385, allocations: 112.9 kB / 0.8789 GB, free: 6.965 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.877e-05/0.5386, allocations: 7.891 kB / 0.8789 GB, free: 6.957 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001986/0.5388, allocations: 117.7 kB / 0.879 GB, free: 6.84 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-05/0.5388, allocations: 0 / 0.879 GB, free: 6.84 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.5388, allocations: 7.891 kB / 0.879 GB, free: 6.832 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.5388, allocations: 0 / 0.879 GB, free: 6.832 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003621/0.5392, allocations: 362.6 kB / 0.8794 GB, free: 6.422 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.5392, allocations: 0 / 0.8794 GB, free: 6.422 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001494/0.5393, allocations: 23.98 kB / 0.8794 GB, free: 6.398 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.5394, allocations: 0 / 0.8794 GB, free: 6.398 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.65e-05/0.5394, allocations: 15.88 kB / 0.8794 GB, free: 6.383 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.5394, allocations: 7.938 kB / 0.8794 GB, free: 6.375 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.5394, allocations: 0 / 0.8794 GB, free: 6.375 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000263/0.5397, allocations: 217.8 kB / 0.8796 GB, free: 6.148 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 7.381e-05/0.5397, allocations: 77.11 kB / 0.8797 GB, free: 6.055 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.14e-05/0.5398, allocations: 8.031 kB / 0.8797 GB, free: 6.047 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000119/0.5399, allocations: 11.94 kB / 0.8797 GB, free: 6.035 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.001e-05/0.5399, allocations: 8.062 kB / 0.8797 GB, free: 6.027 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.154e-05/0.5399, allocations: 8 kB / 0.8797 GB, free: 6.02 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 3.543e-05/0.54, allocations: 83.27 kB / 0.8798 GB, free: 5.938 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.54, allocations: 0 / 0.8798 GB, free: 5.938 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.000269/0.5403, allocations: 43.94 kB / 0.8798 GB, free: 5.895 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.0006231/0.5409, allocations: 0.7964 MB / 0.8806 GB, free: 5.07 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001469/0.541, allocations: 67.86 kB / 0.8807 GB, free: 5.004 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.5411, allocations: 0 / 0.8807 GB, free: 5.004 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 5.572e-05/0.5411, allocations: 36 kB / 0.8807 GB, free: 4.969 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001779/0.5413, allocations: 15.83 kB / 0.8807 GB, free: 4.953 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006065/0.5419, allocations: 307.9 kB / 0.881 GB, free: 4.613 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001822/0.5421, allocations: 0.6965 MB / 0.8817 GB, free: 3.891 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 5.865e-05/0.5422, allocations: 12.67 kB / 0.8817 GB, free: 3.879 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.908e-05/0.5422, allocations: 28.83 kB / 0.8817 GB, free: 3.852 MB / 0.5417 GB Notification: Performance of SimCode: time 2.21e-07/0.5422, allocations: 0 / 0.8817 GB, free: 3.852 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01287/0.5551, allocations: 2.022 MB / 0.8837 GB, free: 2.062 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002356/0.5554, allocations: 204.4 kB / 0.8839 GB, free: 1.84 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.509/2.064, allocations: 0 / 0.8839 GB, free: 1.84 MB / 0.5417 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)