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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004666/0.004666, allocations: 101.7 kB / 15.73 MB, free: 6.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001276/0.001276, allocations: 200.3 kB / 16.68 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002557/0.002557, allocations: 274.6 kB / 290.8 MB, free: 1.941 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.08/1.08, allocations: 178.6 MB / 0.5074 GB, free: 4.473 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003016/0.003016, allocations: 100.1 kB / 0.6943 GB, free: 3.613 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4669/0.4699, allocations: 89.15 MB / 0.7813 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.00282/0.4728, allocations: 1.261 MB / 0.7826 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001173/0.474, allocations: 0.6149 MB / 0.7832 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.216e-05/0.474, allocations: 3.938 kB / 0.7832 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.238e-05/0.4741, allocations: 2 kB / 0.7832 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.287e-05/0.4741, allocations: 4.641 kB / 0.7832 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006902/0.4748, allocations: 152.9 kB / 0.7833 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.362e-05/0.4749, allocations: 23.31 kB / 0.7834 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.926e-05/0.475, allocations: 3.109 kB / 0.7834 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.65e-05/0.475, allocations: 5.094 kB / 0.7834 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.212e-05/0.4751, allocations: 12.88 kB / 0.7834 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.299e-05/0.4751, allocations: 1.344 kB / 0.7834 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006336/0.4757, allocations: 341 kB / 0.7837 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.582e-05/0.4758, allocations: 6.484 kB / 0.7837 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.64e-05/0.4758, allocations: 8 kB / 0.7837 GB, free: 12.33 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003724/0.4762, allocations: 151 kB / 0.7839 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.4762, allocations: 0.7031 kB / 0.7839 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.984e-06/0.4762, allocations: 4 kB / 0.7839 GB, free: 12.28 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.759e-06/0.4762, allocations: 0 / 0.7839 GB, free: 12.28 MB / 0.5606 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.0005567/0.4768, allocations: 362.8 kB / 0.7842 GB, free: 11.9 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.4768, allocations: 9.688 kB / 0.7842 GB, free: 11.9 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.721e-05/0.4769, allocations: 35.41 kB / 0.7843 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.807e-05/0.4769, allocations: 2.219 kB / 0.7843 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001578/0.4771, allocations: 167.8 kB / 0.7844 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/0.4771, allocations: 384 / 0.7844 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.241e-05/0.4772, allocations: 3.891 kB / 0.7844 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000121/0.4773, allocations: 48.16 kB / 0.7845 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.4773, allocations: 3.938 kB / 0.7845 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.271e-05/0.4773, allocations: 4 kB / 0.7845 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.318e-06/0.4773, allocations: 1.375 kB / 0.7845 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.639e-05/0.4774, allocations: 12.02 kB / 0.7845 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002024/0.4776, allocations: 158.9 kB / 0.7846 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002079/0.4778, allocations: 44.48 kB / 0.7847 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.449e-05/0.4779, allocations: 25.34 kB / 0.7847 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.4779, allocations: 5.219 kB / 0.7847 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.4779, allocations: 32.7 kB / 0.7847 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=4): time 1.192e-06/0.4779, allocations: 0 / 0.7847 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6): time 0.0007138/0.4786, allocations: 305.2 kB / 0.785 GB, free: 11.03 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.433e-05/0.4787, allocations: 56.59 kB / 0.7851 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.726e-05/0.4788, allocations: 96.31 kB / 0.7852 GB, free: 10.87 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.042e-05/0.4788, allocations: 29.7 kB / 0.7852 GB, free: 10.83 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.193e-05/0.4789, allocations: 86.22 kB / 0.7853 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.57e-05/0.4789, allocations: 22.52 kB / 0.7853 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.662e-05/0.479, allocations: 21.62 kB / 0.7853 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.4791, allocations: 317.5 kB / 0.7856 GB, free: 10.39 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.941e-05/0.4792, allocations: 6.891 kB / 0.7856 GB, free: 10.39 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.71e-05/0.4792, allocations: 12.42 kB / 0.7857 GB, free: 10.39 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.879e-05/0.4793, allocations: 41.94 kB / 0.7857 GB, free: 10.36 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.11e-07/0.4793, allocations: 4 kB / 0.7857 GB, free: 10.36 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000121/0.4794, allocations: 68.38 kB / 0.7858 GB, free: 10.31 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.4795, allocations: 4.406 kB / 0.7858 GB, free: 10.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.4795, allocations: 1.703 kB / 0.7858 GB, free: 10.31 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.4795, allocations: 3.984 kB / 0.7858 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.088e-05/0.4795, allocations: 12.67 kB / 0.7858 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.4796, allocations: 0 / 0.7858 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.925e-05/0.4796, allocations: 1.156 kB / 0.7858 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.875e-05/0.4796, allocations: 5.125 kB / 0.7858 GB, free: 10.3 MB / 0.5606 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.632e-05/0.4797, allocations: 116.8 kB / 0.7859 GB, free: 10.18 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.843e-05/0.4797, allocations: 7.141 kB / 0.7859 GB, free: 10.18 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001707/0.4799, allocations: 76.23 kB / 0.786 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.4799, allocations: 1.156 kB / 0.786 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.4799, allocations: 0.8906 kB / 0.786 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.4799, allocations: 0 / 0.786 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004046/0.4803, allocations: 317.2 kB / 0.7863 GB, free: 9.793 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.4804, allocations: 0 / 0.7863 GB, free: 9.793 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.92e-05/0.4804, allocations: 16.56 kB / 0.7863 GB, free: 9.789 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.201e-06/0.4805, allocations: 5.188 kB / 0.7863 GB, free: 9.785 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.4805, allocations: 1.281 kB / 0.7863 GB, free: 9.785 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.463e-06/0.4805, allocations: 1.828 kB / 0.7863 GB, free: 9.785 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.4805, allocations: 3.938 kB / 0.7863 GB, free: 9.781 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002172/0.4807, allocations: 185 kB / 0.7865 GB, free: 9.617 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.985e-05/0.4808, allocations: 82.14 kB / 0.7866 GB, free: 9.523 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.654e-05/0.4808, allocations: 9.406 kB / 0.7866 GB, free: 9.516 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.164e-05/0.4809, allocations: 1.578 kB / 0.7866 GB, free: 9.516 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.618e-05/0.4809, allocations: 3.922 kB / 0.7866 GB, free: 9.516 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.482e-06/0.4809, allocations: 2.656 kB / 0.7866 GB, free: 9.516 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.646e-05/0.481, allocations: 79.16 kB / 0.7867 GB, free: 9.441 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.81e-07/0.481, allocations: 0 / 0.7867 GB, free: 9.441 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002647/0.4812, allocations: 23.75 kB / 0.7867 GB, free: 9.434 MB / 0.5606 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006687/0.4819, allocations: 0.7389 MB / 0.7874 GB, free: 8.734 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001334/0.4821, allocations: 32.16 kB / 0.7874 GB, free: 8.727 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.4821, allocations: 0 / 0.7874 GB, free: 8.727 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 3.538e-05/0.4821, allocations: 20.98 kB / 0.7875 GB, free: 8.719 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002255/0.4823, allocations: 2.953 kB / 0.7875 GB, free: 8.719 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00146/0.4838, allocations: 1.325 MB / 0.7887 GB, free: 7.441 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003442/0.4842, allocations: 0.681 MB / 0.7894 GB, free: 6.746 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 4.265e-05/0.4842, allocations: 12.72 kB / 0.7894 GB, free: 6.738 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.974e-05/0.4843, allocations: 15.72 kB / 0.7894 GB, free: 6.727 MB / 0.5606 GB Notification: Performance of SimCode: time 2.71e-07/0.4843, allocations: 0 / 0.7894 GB, free: 6.727 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02524/0.5095, allocations: 1.616 MB / 0.791 GB, free: 6.371 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.363/8.872, allocations: 14.94 kB / 0.791 GB, free: 6.363 MB / 0.5606 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.csv --start-time -2 --stop-time 2 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0016 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)