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.004857/0.004857, allocations: 102.9 kB / 15.73 MB, free: 6.043 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.001052/0.001052, allocations: 188.4 kB / 16.67 MB, free: 5.961 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.231/1.231, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002005/0.002005, allocations: 289.5 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8773/0.8773, allocations: 169.3 MB / 0.4983 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001736/0.001736, allocations: 95.84 kB / 0.681 GB, free: 7.473 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3915/0.3932, allocations: 86.98 MB / 0.7659 GB, free: 3.863 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002165/0.3954, allocations: 1.261 MB / 0.7671 GB, free: 2.594 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009287/0.3964, allocations: 0.6127 MB / 0.7677 GB, free: 1.98 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.564e-05/0.3964, allocations: 4 kB / 0.7677 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.722e-05/0.3964, allocations: 4 kB / 0.7677 GB, free: 1.973 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.952e-05/0.3965, allocations: 7.922 kB / 0.7678 GB, free: 1.965 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005566/0.3971, allocations: 142.9 kB / 0.7679 GB, free: 1.828 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 5.779e-05/0.3971, allocations: 19.92 kB / 0.7679 GB, free: 1.809 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.561e-05/0.3972, allocations: 4 kB / 0.7679 GB, free: 1.805 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.537e-05/0.3972, allocations: 7.984 kB / 0.7679 GB, free: 1.797 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.725e-05/0.3973, allocations: 19.86 kB / 0.7679 GB, free: 1.777 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.117e-05/0.3973, allocations: 0 / 0.7679 GB, free: 1.777 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004746/0.3978, allocations: 347.3 kB / 0.7683 GB, free: 1.438 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.16e-05/0.3978, allocations: 3.984 kB / 0.7683 GB, free: 1.434 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.219e-05/0.3978, allocations: 7.938 kB / 0.7683 GB, free: 1.426 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002477/0.3981, allocations: 146.5 kB / 0.7684 GB, free: 1.285 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.3981, allocations: 0 / 0.7684 GB, free: 1.285 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3981, allocations: 0 / 0.7684 GB, free: 1.285 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.549e-06/0.3981, allocations: 0 / 0.7684 GB, free: 1.285 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.000379/0.3985, allocations: 367.3 kB / 0.7688 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.3985, allocations: 12.03 kB / 0.7688 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.683e-05/0.3986, allocations: 34.75 kB / 0.7688 GB, free: 0.8203 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.524e-05/0.3986, allocations: 0.9375 kB / 0.7688 GB, free: 0.8203 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.99e-05/0.3987, allocations: 168.4 kB / 0.769 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.738e-06/0.3987, allocations: 384 / 0.769 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.565e-05/0.3987, allocations: 384 / 0.769 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.804e-05/0.3988, allocations: 42.25 kB / 0.769 GB, free: 0.5703 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.3988, allocations: 3.938 kB / 0.769 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.406e-06/0.3989, allocations: 0 / 0.769 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.3989, allocations: 4 kB / 0.769 GB, free: 0.5625 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.821e-05/0.3989, allocations: 15.94 kB / 0.769 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001472/0.3991, allocations: 157.7 kB / 0.7692 GB, free: 352 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001609/0.3992, allocations: 42.61 kB / 0.7692 GB, free: 300 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.467e-05/0.3993, allocations: 20.94 kB / 0.7692 GB, free: 276 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.682e-05/0.3993, allocations: 7.922 kB / 0.7693 GB, free: 268 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.288e-05/0.3993, allocations: 34.56 kB / 0.7693 GB, free: 224 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=4): time 9.11e-07/0.3993, allocations: 0 / 0.7693 GB, free: 224 kB / 0.5294 GB Notification: Performance of matching and sorting (n=6): time 0.0005674/0.3999, allocations: 318.3 kB / 0.7696 GB, free: 15.86 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.104e-05/0.4, allocations: 51.41 kB / 0.7696 GB, free: 15.79 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.766e-05/0.4, allocations: 101.8 kB / 0.7697 GB, free: 15.68 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/0.4, allocations: 29.7 kB / 0.7698 GB, free: 15.65 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 2.682e-05/0.4001, allocations: 84.14 kB / 0.7698 GB, free: 15.56 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.43e-05/0.4001, allocations: 11.75 kB / 0.7699 GB, free: 15.55 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.478e-05/0.4001, allocations: 25.7 kB / 0.7699 GB, free: 15.52 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.761e-05/0.4002, allocations: 318.8 kB / 0.7702 GB, free: 15.2 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.751e-05/0.4003, allocations: 8 kB / 0.7702 GB, free: 15.19 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.956e-05/0.4003, allocations: 11.98 kB / 0.7702 GB, free: 15.18 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.265e-05/0.4004, allocations: 32.86 kB / 0.7702 GB, free: 15.14 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.51e-07/0.4004, allocations: 0 / 0.7702 GB, free: 15.14 MB / 0.545 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.347e-05/0.4005, allocations: 77.45 kB / 0.7703 GB, free: 15.06 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/0.4005, allocations: 4 kB / 0.7703 GB, free: 15.06 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.4005, allocations: 0 / 0.7703 GB, free: 15.06 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.02e-05/0.4005, allocations: 0 / 0.7703 GB, free: 15.06 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.108e-05/0.4006, allocations: 16 kB / 0.7703 GB, free: 15.04 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.4006, allocations: 3.984 kB / 0.7703 GB, free: 15.04 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.871e-05/0.4006, allocations: 4 kB / 0.7703 GB, free: 15.04 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.057e-05/0.4006, allocations: 4 kB / 0.7703 GB, free: 15.03 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 (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 6.535e-05/0.4007, allocations: 105.8 kB / 0.7704 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.841e-05/0.4007, allocations: 11.94 kB / 0.7705 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000138/0.4009, allocations: 69.59 kB / 0.7705 GB, free: 14.83 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.4009, allocations: 0 / 0.7705 GB, free: 14.83 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.4009, allocations: 3.984 kB / 0.7705 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.4009, allocations: 4 kB / 0.7705 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002886/0.4012, allocations: 311.4 kB / 0.7708 GB, free: 14.46 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.4012, allocations: 4 kB / 0.7708 GB, free: 14.45 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.028e-05/0.4013, allocations: 8.188 kB / 0.7708 GB, free: 14.45 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.4013, allocations: 3.938 kB / 0.7708 GB, free: 14.44 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.408e-06/0.4013, allocations: 8 kB / 0.7708 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.4013, allocations: 0 / 0.7708 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.4013, allocations: 3.984 kB / 0.7709 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001648/0.4015, allocations: 188.2 kB / 0.771 GB, free: 14.23 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.584e-05/0.4015, allocations: 89.12 kB / 0.7711 GB, free: 14.12 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.161e-05/0.4016, allocations: 0 / 0.7711 GB, free: 14.12 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.127e-05/0.4016, allocations: 4 kB / 0.7711 GB, free: 14.12 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.112e-05/0.4017, allocations: 0 / 0.7711 GB, free: 14.12 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.373e-06/0.4017, allocations: 4 kB / 0.7711 GB, free: 14.11 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.346e-05/0.4017, allocations: 83.33 kB / 0.7712 GB, free: 14.03 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4017, allocations: 8 kB / 0.7712 GB, free: 14.02 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002322/0.4019, allocations: 16 kB / 0.7712 GB, free: 14.01 MB / 0.545 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.0004449/0.4024, allocations: 0.7326 MB / 0.7719 GB, free: 13.25 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001027/0.4025, allocations: 40.28 kB / 0.772 GB, free: 13.21 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4025, allocations: 0 / 0.772 GB, free: 13.21 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.594e-05/0.4026, allocations: 19.94 kB / 0.772 GB, free: 13.19 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002101/0.4028, allocations: 8.562 kB / 0.772 GB, free: 13.18 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001075/0.4038, allocations: 1.324 MB / 0.7733 GB, free: 11.77 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002113/0.4041, allocations: 0.6845 MB / 0.774 GB, free: 11.06 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.499e-05/0.4041, allocations: 8.031 kB / 0.774 GB, free: 11.05 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.062e-05/0.4041, allocations: 15.44 kB / 0.774 GB, free: 11.04 MB / 0.545 GB Notification: Performance of SimCode: time 4.51e-07/0.4042, allocations: 0 / 0.774 GB, free: 11.04 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01881/0.423, allocations: 1.628 MB / 0.7756 GB, free: 9.598 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.05/7.473, allocations: 1.125 kB / 0.7756 GB, free: 9.598 MB / 0.545 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/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)