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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004483/0.004483, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001115/0.001115, allocations: 195.5 kB / 16.67 MB, free: 5.52 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.217/1.217, allocations: 222.9 MB / 240.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001981/0.001981, allocations: 289.7 kB / 290.8 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8803/0.8803, allocations: 169.3 MB / 0.4983 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001601/0.001601, allocations: 103.9 kB / 0.681 GB, free: 7.473 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3878/0.3894, allocations: 86.97 MB / 0.7659 GB, free: 3.855 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002383/0.3918, allocations: 1.468 MB / 0.7673 GB, free: 2.379 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001016/0.3928, allocations: 0.6323 MB / 0.7679 GB, free: 1.746 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.172e-05/0.3929, allocations: 3.938 kB / 0.768 GB, free: 1.742 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.62e-05/0.3929, allocations: 3.938 kB / 0.768 GB, free: 1.738 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 5.335e-05/0.393, allocations: 11.91 kB / 0.768 GB, free: 1.727 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005938/0.3936, allocations: 165.5 kB / 0.7681 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 8.593e-05/0.3937, allocations: 63.52 kB / 0.7682 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.895e-05/0.3938, allocations: 6.812 kB / 0.7682 GB, free: 1.5 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 5.737e-05/0.3938, allocations: 19.92 kB / 0.7682 GB, free: 1.48 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.306e-05/0.3939, allocations: 27.91 kB / 0.7682 GB, free: 1.453 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.266e-05/0.3939, allocations: 4 kB / 0.7682 GB, free: 1.449 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004605/0.3943, allocations: 343.3 kB / 0.7686 GB, free: 1.113 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 2.122e-05/0.3944, allocations: 19.91 kB / 0.7686 GB, free: 1.094 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.543e-05/0.3944, allocations: 27.88 kB / 0.7686 GB, free: 1.066 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002705/0.3947, allocations: 171.6 kB / 0.7688 GB, free: 0.8984 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.3947, allocations: 0 / 0.7688 GB, free: 0.8984 MB / 0.5294 GB Notification: Performance of FrontEnd: time 3.567e-06/0.3947, allocations: 0 / 0.7688 GB, free: 0.8984 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.193e-06/0.3947, allocations: 3.938 kB / 0.7688 GB, free: 0.8945 MB / 0.5294 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.0005185/0.3952, allocations: 399.3 kB / 0.7692 GB, free: 464 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.3953, allocations: 8.031 kB / 0.7692 GB, free: 456 kB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.203e-05/0.3953, allocations: 38.75 kB / 0.7692 GB, free: 408 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.963e-05/0.3954, allocations: 8.844 kB / 0.7692 GB, free: 400 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.768e-05/0.3955, allocations: 168.3 kB / 0.7694 GB, free: 192 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.54e-05/0.3955, allocations: 12.31 kB / 0.7694 GB, free: 180 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.098e-05/0.3955, allocations: 4.375 kB / 0.7694 GB, free: 176 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002164/0.3957, allocations: 78.2 kB / 0.7695 GB, free: 92 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.3958, allocations: 7.922 kB / 0.7695 GB, free: 84 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.113e-05/0.3958, allocations: 8 kB / 0.7695 GB, free: 76 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.3958, allocations: 0 / 0.7695 GB, free: 76 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002129/0.396, allocations: 47.95 kB / 0.7695 GB, free: 28 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005141/0.3965, allocations: 332.6 kB / 0.7698 GB, free: 15.65 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002614/0.3968, allocations: 78.53 kB / 0.7699 GB, free: 15.57 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001002/0.3969, allocations: 28.84 kB / 0.7699 GB, free: 15.54 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/0.3969, allocations: 4 kB / 0.77 GB, free: 15.53 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.367e-05/0.397, allocations: 34.56 kB / 0.77 GB, free: 15.49 MB / 0.545 GB Notification: Performance of pre-optimization done (n=7): time 1.253e-06/0.397, allocations: 0 / 0.77 GB, free: 15.49 MB / 0.545 GB Notification: Performance of matching and sorting (n=11): time 0.001505/0.3985, allocations: 0.65 MB / 0.7706 GB, free: 14.75 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.556e-05/0.3985, allocations: 55.5 kB / 0.7707 GB, free: 14.68 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.371e-05/0.3986, allocations: 109.7 kB / 0.7708 GB, free: 14.56 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.723e-05/0.3986, allocations: 29.7 kB / 0.7708 GB, free: 14.53 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.24e-05/0.3987, allocations: 88.05 kB / 0.7709 GB, free: 14.44 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.323e-05/0.3987, allocations: 39.45 kB / 0.7709 GB, free: 14.4 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.713e-05/0.3988, allocations: 29.7 kB / 0.771 GB, free: 14.36 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001015/0.3989, allocations: 318.8 kB / 0.7713 GB, free: 14.04 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/0.399, allocations: 31.97 kB / 0.7713 GB, free: 14.01 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001034/0.3991, allocations: 30.98 kB / 0.7713 GB, free: 13.98 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002198/0.3994, allocations: 76.77 kB / 0.7714 GB, free: 13.91 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.3994, allocations: 0 / 0.7714 GB, free: 13.91 MB / 0.545 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002682/0.3996, allocations: 125.6 kB / 0.7715 GB, free: 13.78 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.3997, allocations: 7.984 kB / 0.7715 GB, free: 13.77 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.3997, allocations: 0 / 0.7715 GB, free: 13.77 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.3997, allocations: 4 kB / 0.7715 GB, free: 13.77 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000149/0.3998, allocations: 23.98 kB / 0.7715 GB, free: 13.74 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.3999, allocations: 3.938 kB / 0.7716 GB, free: 13.74 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.544e-05/0.3999, allocations: 8 kB / 0.7716 GB, free: 13.73 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-06/0.3999, allocations: 0 / 0.7716 GB, free: 13.73 MB / 0.545 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 (13): * Single equations (assignments): 13 * 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 7.764e-05/0.4, allocations: 128.2 kB / 0.7717 GB, free: 13.6 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.94e-05/0.4, allocations: 7.906 kB / 0.7717 GB, free: 13.59 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003357/0.4004, allocations: 121.6 kB / 0.7718 GB, free: 13.46 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.4004, allocations: 4 kB / 0.7718 GB, free: 13.46 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.4004, allocations: 3.938 kB / 0.7718 GB, free: 13.46 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.4004, allocations: 3.984 kB / 0.7718 GB, free: 13.45 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004948/0.4009, allocations: 386.4 kB / 0.7722 GB, free: 13.02 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.4009, allocations: 0 / 0.7722 GB, free: 13.02 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001399/0.4011, allocations: 27.98 kB / 0.7722 GB, free: 12.99 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.4011, allocations: 8.062 kB / 0.7722 GB, free: 12.98 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.051e-05/0.4011, allocations: 3.984 kB / 0.7722 GB, free: 12.98 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.4011, allocations: 4 kB / 0.7722 GB, free: 12.98 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.4011, allocations: 0 / 0.7722 GB, free: 12.98 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004308/0.4016, allocations: 259.2 kB / 0.7725 GB, free: 12.71 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.21e-05/0.4016, allocations: 77.11 kB / 0.7725 GB, free: 12.61 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.683e-05/0.4016, allocations: 7.969 kB / 0.7726 GB, free: 12.61 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000105/0.4017, allocations: 7.984 kB / 0.7726 GB, free: 12.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.737e-05/0.4017, allocations: 8 kB / 0.7726 GB, free: 12.59 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.046e-06/0.4018, allocations: 0 / 0.7726 GB, free: 12.59 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.094e-05/0.4018, allocations: 83.27 kB / 0.7726 GB, free: 12.51 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4018, allocations: 4.062 kB / 0.7727 GB, free: 12.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00026/0.4021, allocations: 39.94 kB / 0.7727 GB, free: 12.46 MB / 0.545 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 () * Number of clocked 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 (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.0008013/0.4029, allocations: 0.8215 MB / 0.7735 GB, free: 11.62 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003001/0.4032, allocations: 84.56 kB / 0.7736 GB, free: 11.54 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.624e-06/0.4032, allocations: 0 / 0.7736 GB, free: 11.54 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001245/0.4033, allocations: 47.91 kB / 0.7736 GB, free: 11.49 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002958/0.4036, allocations: 8.219 kB / 0.7736 GB, free: 11.48 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001794/0.4054, allocations: 1.598 MB / 0.7752 GB, free: 9.805 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002332/0.4057, allocations: 0.6885 MB / 0.7759 GB, free: 9.09 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 5.184e-05/0.4058, allocations: 20.69 kB / 0.7759 GB, free: 9.07 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.7e-05/0.4058, allocations: 31.42 kB / 0.7759 GB, free: 9.039 MB / 0.545 GB Notification: Performance of SimCode: time 2.2e-07/0.4058, allocations: 0 / 0.7759 GB, free: 9.039 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01883/0.4246, allocations: 2.343 MB / 0.7782 GB, free: 6.902 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.946/7.371, allocations: 7.125 kB / 0.7782 GB, free: 6.898 MB / 0.545 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/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)