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 1.061/1.061, allocations: 141.8 MB / 149.3 MB, free: 9.219 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.001043/0.001042, allocations: 176.8 kB / 182.2 MB, free: 9.445 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.485/1.485, allocations: 221.5 MB / 436.4 MB, free: 13.29 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.0009076/0.0009075, allocations: 92.03 kB / 0.5074 GB, free: 10.12 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001771/0.001771, allocations: 282 kB / 0.5889 GB, free: 54.64 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 3.055e-05/3.057e-05, allocations: 7.984 kB / 0.6766 GB, free: 12.71 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4629/0.463, allocations: 82.78 MB / 0.7575 GB, free: 31.9 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1546/0.6176, allocations: 108.7 MB / 0.8636 GB, free: 3.039 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002539/0.6179, allocations: 79.94 kB / 0.8637 GB, free: 2.961 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01187/0.6298, allocations: 4.046 MB / 0.8677 GB, free: 14.91 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.713e-06/0.6299, allocations: 0 / 0.8677 GB, free: 14.91 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.384e-06/0.6299, allocations: 0 / 0.8677 GB, free: 14.91 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.0003754/0.6303, allocations: 342.4 kB / 0.868 GB, free: 14.54 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.081e-05/0.6303, allocations: 8.031 kB / 0.868 GB, free: 14.53 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4e-05/0.6304, allocations: 4 kB / 0.868 GB, free: 14.52 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001632/0.6306, allocations: 171 kB / 0.8682 GB, free: 14.32 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.6306, allocations: 0 / 0.8682 GB, free: 14.32 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.621e-05/0.6306, allocations: 7.906 kB / 0.8682 GB, free: 14.31 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.403e-05/0.6307, allocations: 7.938 kB / 0.8682 GB, free: 14.3 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.446e-05/0.6308, allocations: 41.69 kB / 0.8682 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.6308, allocations: 0 / 0.8682 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.6308, allocations: 0 / 0.8682 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.319e-06/0.6308, allocations: 0 / 0.8682 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001911/0.631, allocations: 142.2 kB / 0.8684 GB, free: 14.08 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001858/0.6312, allocations: 42.53 kB / 0.8684 GB, free: 14.03 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.747e-05/0.6313, allocations: 16.86 kB / 0.8684 GB, free: 14.01 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.673e-05/0.6313, allocations: 4.078 kB / 0.8684 GB, free: 14 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.608e-05/0.6313, allocations: 30.56 kB / 0.8685 GB, free: 13.96 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=4): time 1.292e-06/0.6313, allocations: 0 / 0.8685 GB, free: 13.96 MB / 0.5417 GB Notification: Performance of matching and sorting (n=6): time 0.000593/0.6319, allocations: 286.3 kB / 0.8687 GB, free: 13.63 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.266e-05/0.632, allocations: 51.41 kB / 0.8688 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.513e-05/0.6321, allocations: 97.27 kB / 0.8689 GB, free: 13.47 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.709e-05/0.6321, allocations: 25.7 kB / 0.8689 GB, free: 13.44 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 3.504e-05/0.6321, allocations: 80.14 kB / 0.869 GB, free: 13.36 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.915e-05/0.6322, allocations: 19.64 kB / 0.869 GB, free: 13.34 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.687e-06/0.6322, allocations: 4 kB / 0.869 GB, free: 13.33 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001301/0.6323, allocations: 314.8 kB / 0.8693 GB, free: 13.02 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.121e-05/0.6324, allocations: 8 kB / 0.8693 GB, free: 13.01 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.73e-05/0.6324, allocations: 12 kB / 0.8693 GB, free: 13 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.784e-05/0.6324, allocations: 11.98 kB / 0.8693 GB, free: 12.98 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.6324, allocations: 0 / 0.8693 GB, free: 12.98 MB / 0.5417 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001015/0.6325, allocations: 65.59 kB / 0.8694 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.6326, allocations: 7.984 kB / 0.8694 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.6326, allocations: 0 / 0.8694 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.12e-05/0.6326, allocations: 4.031 kB / 0.8694 GB, free: 12.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.924e-05/0.6326, allocations: 12 kB / 0.8694 GB, free: 12.89 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.189e-06/0.6327, allocations: 0 / 0.8694 GB, free: 12.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.827e-05/0.6327, allocations: 0 / 0.8694 GB, free: 12.89 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.641e-06/0.6327, allocations: 4 kB / 0.8694 GB, free: 12.89 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.478e-05/0.6328, allocations: 105 kB / 0.8695 GB, free: 12.78 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.92e-05/0.6329, allocations: 57.58 kB / 0.8696 GB, free: 12.71 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.035e-05/0.6329, allocations: 7.906 kB / 0.8696 GB, free: 12.71 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001402/0.633, allocations: 70.2 kB / 0.8696 GB, free: 12.63 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.806e-06/0.633, allocations: 4 kB / 0.8696 GB, free: 12.62 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.6331, allocations: 0 / 0.8696 GB, free: 12.62 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.6331, allocations: 0 / 0.8696 GB, free: 12.62 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000357/0.6334, allocations: 295.9 kB / 0.8699 GB, free: 12.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.6334, allocations: 0 / 0.8699 GB, free: 12.29 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.955e-05/0.6335, allocations: 12 kB / 0.8699 GB, free: 12.28 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.023e-06/0.6335, allocations: 0 / 0.8699 GB, free: 12.28 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.6335, allocations: 7.984 kB / 0.8699 GB, free: 12.27 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.6335, allocations: 0 / 0.8699 GB, free: 12.27 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.6335, allocations: 0 / 0.8699 GB, free: 12.27 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001982/0.6337, allocations: 186 kB / 0.8701 GB, free: 12.06 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 6.184e-05/0.6338, allocations: 85.05 kB / 0.8702 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.637e-05/0.6338, allocations: 3.984 kB / 0.8702 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.604e-05/0.6339, allocations: 0 / 0.8702 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.949e-05/0.6339, allocations: 11.94 kB / 0.8702 GB, free: 11.95 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.65e-06/0.634, allocations: 0 / 0.8702 GB, free: 11.95 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 3.631e-05/0.634, allocations: 79.28 kB / 0.8703 GB, free: 11.87 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.11e-07/0.634, allocations: 0 / 0.8703 GB, free: 11.87 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002447/0.6342, allocations: 28.05 kB / 0.8703 GB, free: 11.84 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.0006102/0.6349, allocations: 0.811 MB / 0.8711 GB, free: 11 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 9.807e-05/0.635, allocations: 31.98 kB / 0.8711 GB, free: 10.96 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.635, allocations: 4.062 kB / 0.8712 GB, free: 10.96 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 2.264e-05/0.635, allocations: 15.94 kB / 0.8712 GB, free: 10.95 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001497/0.6352, allocations: 6.438 kB / 0.8712 GB, free: 10.94 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004901/0.6357, allocations: 175 kB / 0.8713 GB, free: 10.73 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003132/0.636, allocations: 0.6924 MB / 0.872 GB, free: 10.01 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.676e-05/0.636, allocations: 7.938 kB / 0.872 GB, free: 10 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.372e-05/0.6361, allocations: 15.44 kB / 0.872 GB, free: 9.988 MB / 0.5417 GB Notification: Performance of SimCode: time 2.3e-07/0.6361, allocations: 0 / 0.872 GB, free: 9.988 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02227/0.6584, allocations: 1.038 MB / 0.8731 GB, free: 8.98 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002336/0.6587, allocations: 192.3 kB / 0.8732 GB, free: 8.789 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.595/2.254, allocations: 1.969 kB / 0.8732 GB, free: 8.789 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)