Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dp_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_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.7477/0.7477, 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.001052/0.001052, allocations: 177.4 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.375/1.375, allocations: 221.3 MB / 441.4 MB, free: 4.664 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.0008264/0.0008264, allocations: 96.09 kB / 0.5124 GB, free: 24.13 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001744/0.001744, allocations: 270 kB / 0.5939 GB, free: 7.969 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.859e-05/3.868e-05, allocations: 4 kB / 0.6835 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4231/0.4232, allocations: 82.77 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1216/0.5448, allocations: 109.5 MB / 0.8713 GB, free: 15 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000273/0.5451, allocations: 75.95 kB / 0.8714 GB, free: 14.92 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01334/0.5585, allocations: 4.567 MB / 0.8759 GB, free: 10.36 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.383e-06/0.5585, allocations: 0 / 0.8759 GB, free: 10.36 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.203e-06/0.5586, allocations: 4 kB / 0.8759 GB, free: 10.35 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000373/0.5589, allocations: 350.5 kB / 0.8762 GB, free: 9.965 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/0.559, allocations: 8.031 kB / 0.8762 GB, free: 9.957 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.145e-05/0.559, allocations: 34.56 kB / 0.8762 GB, free: 9.914 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.834e-05/0.5591, allocations: 3.938 kB / 0.8763 GB, free: 9.91 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001248/0.5592, allocations: 167 kB / 0.8764 GB, free: 9.707 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.5592, allocations: 4 kB / 0.8764 GB, free: 9.703 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.471e-05/0.5593, allocations: 11.91 kB / 0.8764 GB, free: 9.691 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001246/0.5594, allocations: 49.69 kB / 0.8765 GB, free: 9.637 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.5594, allocations: 0 / 0.8765 GB, free: 9.637 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.5594, allocations: 4 kB / 0.8765 GB, free: 9.633 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.5594, allocations: 3.938 kB / 0.8765 GB, free: 9.629 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.238e-05/0.5595, allocations: 22.17 kB / 0.8765 GB, free: 9.609 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002049/0.5597, allocations: 161.6 kB / 0.8767 GB, free: 9.402 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001093/0.5598, allocations: 62.5 kB / 0.8767 GB, free: 9.332 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.654e-05/0.5599, allocations: 28.86 kB / 0.8767 GB, free: 9.301 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.691e-05/0.5599, allocations: 4 kB / 0.8767 GB, free: 9.297 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.946e-05/0.56, allocations: 38.56 kB / 0.8768 GB, free: 9.25 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=7): time 1.082e-06/0.56, allocations: 0 / 0.8768 GB, free: 9.25 MB / 0.5417 GB Notification: Performance of matching and sorting (n=11): time 0.0009879/0.561, allocations: 0.5518 MB / 0.8773 GB, free: 8.609 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.122e-05/0.561, allocations: 59.34 kB / 0.8774 GB, free: 8.539 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.884e-05/0.5611, allocations: 92.98 kB / 0.8775 GB, free: 8.441 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.794e-05/0.5611, allocations: 29.7 kB / 0.8775 GB, free: 8.406 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.22e-05/0.5612, allocations: 80.14 kB / 0.8776 GB, free: 8.324 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.809e-05/0.5612, allocations: 39.39 kB / 0.8776 GB, free: 8.285 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.355e-06/0.5612, allocations: 4 kB / 0.8776 GB, free: 8.281 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001265/0.5614, allocations: 318.8 kB / 0.8779 GB, free: 7.961 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.153e-05/0.5614, allocations: 27.94 kB / 0.8779 GB, free: 7.934 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.517e-05/0.5615, allocations: 24.12 kB / 0.878 GB, free: 7.91 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.506e-05/0.5615, allocations: 23.98 kB / 0.878 GB, free: 7.887 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.42e-07/0.5615, allocations: 0 / 0.878 GB, free: 7.887 MB / 0.5417 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000148/0.5617, allocations: 96.34 kB / 0.8781 GB, free: 7.789 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.5617, allocations: 5.25 kB / 0.8781 GB, free: 7.785 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.5617, allocations: 0 / 0.8781 GB, free: 7.785 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.5617, allocations: 0 / 0.8781 GB, free: 7.785 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.5618, allocations: 27.92 kB / 0.8781 GB, free: 7.758 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.297e-05/0.5619, allocations: 0 / 0.8781 GB, free: 7.758 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.334e-05/0.5619, allocations: 96 / 0.8781 GB, free: 7.758 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.11e-05/0.5619, allocations: 11.94 kB / 0.8781 GB, free: 7.746 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 6.805e-05/0.562, allocations: 108.9 kB / 0.8782 GB, free: 7.633 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.377e-05/0.562, allocations: 7.906 kB / 0.8782 GB, free: 7.625 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002057/0.5622, allocations: 105.7 kB / 0.8783 GB, free: 7.52 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.5622, allocations: 3.938 kB / 0.8783 GB, free: 7.516 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.5622, allocations: 0 / 0.8783 GB, free: 7.516 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.5622, allocations: 0 / 0.8783 GB, free: 7.516 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004233/0.5627, allocations: 350.5 kB / 0.8787 GB, free: 7.117 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.5627, allocations: 4 kB / 0.8787 GB, free: 7.113 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001074/0.5628, allocations: 23.98 kB / 0.8787 GB, free: 7.09 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.5628, allocations: 3.938 kB / 0.8787 GB, free: 7.086 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/0.5628, allocations: 0 / 0.8787 GB, free: 7.086 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.5628, allocations: 0 / 0.8787 GB, free: 7.086 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.5628, allocations: 0 / 0.8787 GB, free: 7.086 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002518/0.5631, allocations: 219.3 kB / 0.8789 GB, free: 6.855 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.363e-05/0.5631, allocations: 81.14 kB / 0.879 GB, free: 6.758 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.555e-05/0.5632, allocations: 4.062 kB / 0.879 GB, free: 6.754 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.795e-05/0.5632, allocations: 4 kB / 0.879 GB, free: 6.75 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.739e-05/0.5633, allocations: 3.984 kB / 0.879 GB, free: 6.746 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.346e-06/0.5633, allocations: 8 kB / 0.879 GB, free: 6.738 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 3.424e-05/0.5633, allocations: 79.28 kB / 0.8791 GB, free: 6.66 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5633, allocations: 0 / 0.8791 GB, free: 6.66 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002879/0.5636, allocations: 47.92 kB / 0.8791 GB, free: 6.613 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_m_flow_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.0006528/0.5643, allocations: 0.7986 MB / 0.8799 GB, free: 5.785 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001394/0.5644, allocations: 59.92 kB / 0.88 GB, free: 5.727 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.5644, allocations: 0 / 0.88 GB, free: 5.727 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 5.982e-05/0.5645, allocations: 39.88 kB / 0.88 GB, free: 5.688 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001384/0.5647, allocations: 7.938 kB / 0.88 GB, free: 5.68 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006124/0.5653, allocations: 275.2 kB / 0.8803 GB, free: 5.371 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002855/0.5656, allocations: 0.6887 MB / 0.8809 GB, free: 4.656 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 4.818e-05/0.5656, allocations: 11.94 kB / 0.881 GB, free: 4.645 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.573e-05/0.5657, allocations: 23.44 kB / 0.881 GB, free: 4.621 MB / 0.5417 GB Notification: Performance of SimCode: time 4.41e-07/0.5657, allocations: 0 / 0.881 GB, free: 4.621 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01353/0.5792, allocations: 1.779 MB / 0.8827 GB, free: 3.062 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002375/0.5795, allocations: 204 kB / 0.8829 GB, free: 2.836 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.567/2.146, allocations: 3.938 kB / 0.8829 GB, free: 2.832 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)