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.8128/0.8128, allocations: 141.8 MB / 149.3 MB, free: 9.211 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.001319/0.001319, allocations: 180.9 kB / 182.2 MB, free: 9.434 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.468/1.468, allocations: 221.5 MB / 436.4 MB, free: 13.32 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.0009584/0.0009584, allocations: 96.05 kB / 0.5074 GB, free: 10.14 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00185/0.00185, allocations: 278 kB / 0.5889 GB, free: 54.66 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.368e-05/2.379e-05, allocations: 8 kB / 0.6766 GB, free: 12.73 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4418/0.4419, allocations: 82.78 MB / 0.7575 GB, free: 31.91 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1423/0.5842, allocations: 108.9 MB / 0.8638 GB, free: 2.898 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002081/0.5844, allocations: 79.94 kB / 0.8639 GB, free: 2.82 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01297/0.5974, allocations: 4.542 MB / 0.8683 GB, free: 14.27 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.804e-06/0.5975, allocations: 0 / 0.8683 GB, free: 14.27 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.424e-06/0.5975, allocations: 0 / 0.8683 GB, free: 14.27 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.0003481/0.5978, allocations: 342.5 kB / 0.8686 GB, free: 13.89 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/0.5979, allocations: 8.031 kB / 0.8686 GB, free: 13.89 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.618e-05/0.5979, allocations: 4 kB / 0.8686 GB, free: 13.88 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001379/0.5981, allocations: 174.9 kB / 0.8688 GB, free: 13.67 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.21e-05/0.5981, allocations: 3.938 kB / 0.8688 GB, free: 13.67 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.16e-05/0.5981, allocations: 4 kB / 0.8688 GB, free: 13.66 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.26e-05/0.5982, allocations: 23.94 kB / 0.8688 GB, free: 13.64 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.39e-05/0.5983, allocations: 41.69 kB / 0.8689 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.5983, allocations: 0 / 0.8689 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.5984, allocations: 4 kB / 0.8689 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.5984, allocations: 0 / 0.8689 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001789/0.5985, allocations: 138.2 kB / 0.869 GB, free: 13.42 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001261/0.5987, allocations: 54.56 kB / 0.8691 GB, free: 13.36 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.562e-05/0.5988, allocations: 32.81 kB / 0.8691 GB, free: 13.32 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 3.628e-05/0.5988, allocations: 7.984 kB / 0.8691 GB, free: 13.31 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.5988, allocations: 38.5 kB / 0.8691 GB, free: 13.27 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=7): time 1.001e-06/0.5988, allocations: 3.938 kB / 0.8691 GB, free: 13.26 MB / 0.5417 GB Notification: Performance of matching and sorting (n=11): time 0.0007921/0.5996, allocations: 0.5068 MB / 0.8696 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.76e-05/0.5997, allocations: 59.41 kB / 0.8697 GB, free: 12.59 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.402e-05/0.5997, allocations: 89 kB / 0.8698 GB, free: 12.5 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.541e-05/0.5998, allocations: 25.7 kB / 0.8698 GB, free: 12.47 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 2.732e-05/0.5998, allocations: 80.14 kB / 0.8699 GB, free: 12.39 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.112e-05/0.5998, allocations: 43.3 kB / 0.8699 GB, free: 12.34 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.649e-06/0.5998, allocations: 0 / 0.8699 GB, free: 12.34 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.245e-05/0.5999, allocations: 314.8 kB / 0.8702 GB, free: 12.03 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.632e-05/0.6, allocations: 19.94 kB / 0.8702 GB, free: 12.01 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.392e-05/0.6, allocations: 28.12 kB / 0.8703 GB, free: 11.98 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.471e-05/0.6001, allocations: 21.73 kB / 0.8703 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.22e-07/0.6001, allocations: 3.938 kB / 0.8703 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001215/0.6002, allocations: 89.62 kB / 0.8704 GB, free: 11.86 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.6002, allocations: 5.406 kB / 0.8704 GB, free: 11.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.6003, allocations: 0 / 0.8704 GB, free: 11.86 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/0.6003, allocations: 0 / 0.8704 GB, free: 11.86 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.6004, allocations: 24 kB / 0.8704 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.6004, allocations: 0 / 0.8704 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.329e-05/0.6004, allocations: 0 / 0.8704 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.386e-05/0.6004, allocations: 11.98 kB / 0.8704 GB, free: 11.82 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.087e-05/0.6005, allocations: 104.9 kB / 0.8705 GB, free: 11.71 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001087/0.6006, allocations: 77.55 kB / 0.8706 GB, free: 11.63 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.035e-05/0.6007, allocations: 4 kB / 0.8706 GB, free: 11.63 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001835/0.6008, allocations: 106 kB / 0.8707 GB, free: 11.52 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.6009, allocations: 0 / 0.8707 GB, free: 11.52 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.6009, allocations: 0 / 0.8707 GB, free: 11.52 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.6009, allocations: 0 / 0.8707 GB, free: 11.52 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003665/0.6012, allocations: 327.2 kB / 0.871 GB, free: 11.15 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.6013, allocations: 0 / 0.871 GB, free: 11.15 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001102/0.6014, allocations: 23.92 kB / 0.871 GB, free: 11.13 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.6014, allocations: 0 / 0.871 GB, free: 11.13 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.6014, allocations: 4 kB / 0.871 GB, free: 11.12 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.6014, allocations: 0 / 0.871 GB, free: 11.12 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.6014, allocations: 0 / 0.871 GB, free: 11.12 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002306/0.6016, allocations: 203.5 kB / 0.8712 GB, free: 10.91 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 3.561e-05/0.6017, allocations: 85.08 kB / 0.8713 GB, free: 10.81 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.519e-05/0.6017, allocations: 0 / 0.8713 GB, free: 10.81 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.864e-05/0.6018, allocations: 8.016 kB / 0.8713 GB, free: 10.8 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.259e-05/0.6018, allocations: 4 kB / 0.8713 GB, free: 10.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.195e-06/0.6018, allocations: 7.938 kB / 0.8713 GB, free: 10.79 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 2.992e-05/0.6019, allocations: 79.28 kB / 0.8714 GB, free: 10.71 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6019, allocations: 0 / 0.8714 GB, free: 10.71 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002718/0.6022, allocations: 39.92 kB / 0.8714 GB, free: 10.67 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.0005625/0.6027, allocations: 0.7827 MB / 0.8722 GB, free: 9.863 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.000129/0.6029, allocations: 58.03 kB / 0.8723 GB, free: 9.809 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/0.6029, allocations: 4 kB / 0.8723 GB, free: 9.805 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 4.043e-05/0.6029, allocations: 28 kB / 0.8723 GB, free: 9.777 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001504/0.6031, allocations: 0.6094 kB / 0.8723 GB, free: 9.777 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006088/0.6037, allocations: 273.8 kB / 0.8725 GB, free: 9.469 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002579/0.604, allocations: 0.6885 MB / 0.8732 GB, free: 8.754 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 5.156e-05/0.604, allocations: 15.94 kB / 0.8732 GB, free: 8.738 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.672e-05/0.6041, allocations: 23.42 kB / 0.8733 GB, free: 8.715 MB / 0.5417 GB Notification: Performance of SimCode: time 2.61e-07/0.6041, allocations: 0 / 0.8733 GB, free: 8.715 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01985/0.624, allocations: 1.454 MB / 0.8747 GB, free: 7.297 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002262/0.6242, allocations: 194.5 kB / 0.8749 GB, free: 7.109 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.598/2.222, allocations: 0.8594 kB / 0.8749 GB, free: 7.109 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)