Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_m_flow_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.005258/0.005258, allocations: 103.8 kB / 15.73 MB, free: 6.047 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.001262/0.001262, allocations: 188 kB / 16.67 MB, free: 5.969 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.234/1.234, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001964/0.001964, allocations: 298.4 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8691/0.8691, allocations: 169.2 MB / 0.4983 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00172/0.00172, allocations: 91.86 kB / 0.681 GB, free: 7.488 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3888/0.3905, allocations: 86.99 MB / 0.7659 GB, free: 3.902 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002004/0.3925, allocations: 1.268 MB / 0.7671 GB, free: 2.629 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009254/0.3935, allocations: 0.6167 MB / 0.7677 GB, free: 2.012 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.056e-05/0.3935, allocations: 0 / 0.7677 GB, free: 2.012 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.513e-05/0.3935, allocations: 3.938 kB / 0.7678 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.841e-05/0.3936, allocations: 11.94 kB / 0.7678 GB, free: 1.996 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005132/0.3941, allocations: 146.1 kB / 0.7679 GB, free: 1.855 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 5.034e-05/0.3942, allocations: 19.91 kB / 0.7679 GB, free: 1.836 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.425e-05/0.3942, allocations: 4 kB / 0.7679 GB, free: 1.832 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.398e-05/0.3943, allocations: 11.98 kB / 0.7679 GB, free: 1.82 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.51e-05/0.3943, allocations: 7.938 kB / 0.7679 GB, free: 1.812 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 9.808e-06/0.3943, allocations: 0 / 0.7679 GB, free: 1.812 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004665/0.3948, allocations: 347.3 kB / 0.7683 GB, free: 1.473 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.134e-05/0.3948, allocations: 8 kB / 0.7683 GB, free: 1.465 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.449e-05/0.3948, allocations: 7.938 kB / 0.7683 GB, free: 1.457 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002288/0.3951, allocations: 154.4 kB / 0.7684 GB, free: 1.309 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.3951, allocations: 0 / 0.7684 GB, free: 1.309 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3951, allocations: 0 / 0.7684 GB, free: 1.309 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.973e-06/0.3951, allocations: 0 / 0.7684 GB, free: 1.309 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.0003812/0.3955, allocations: 359.4 kB / 0.7688 GB, free: 0.9062 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.3955, allocations: 12.03 kB / 0.7688 GB, free: 0.8945 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.923e-05/0.3956, allocations: 34.73 kB / 0.7688 GB, free: 0.8516 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.302e-05/0.3956, allocations: 0.9375 kB / 0.7688 GB, free: 0.8516 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001032/0.3957, allocations: 172.4 kB / 0.769 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.019e-05/0.3957, allocations: 384 / 0.769 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.738e-05/0.3957, allocations: 384 / 0.769 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.485e-05/0.3958, allocations: 46.19 kB / 0.769 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.3958, allocations: 3.938 kB / 0.769 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.095e-06/0.3959, allocations: 0 / 0.769 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.3959, allocations: 0 / 0.769 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.736e-05/0.3959, allocations: 15.97 kB / 0.7691 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001478/0.3961, allocations: 161.7 kB / 0.7692 GB, free: 376 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001578/0.3962, allocations: 46.56 kB / 0.7693 GB, free: 320 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.786e-05/0.3963, allocations: 12.86 kB / 0.7693 GB, free: 304 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.963e-05/0.3963, allocations: 11.88 kB / 0.7693 GB, free: 292 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.873e-05/0.3963, allocations: 30.56 kB / 0.7693 GB, free: 252 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.3963, allocations: 0 / 0.7693 GB, free: 252 kB / 0.5294 GB Notification: Performance of matching and sorting (n=6): time 0.0005451/0.3969, allocations: 318.2 kB / 0.7696 GB, free: 15.88 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.627e-05/0.3969, allocations: 55.41 kB / 0.7697 GB, free: 15.82 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.137e-05/0.397, allocations: 93.86 kB / 0.7698 GB, free: 15.71 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.275e-05/0.397, allocations: 29.7 kB / 0.7698 GB, free: 15.68 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 3.493e-05/0.397, allocations: 80.14 kB / 0.7699 GB, free: 15.6 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.527e-05/0.3971, allocations: 19.73 kB / 0.7699 GB, free: 15.58 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.281e-05/0.3971, allocations: 21.72 kB / 0.7699 GB, free: 15.55 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.678e-05/0.3972, allocations: 310.8 kB / 0.7702 GB, free: 15.24 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.619e-05/0.3973, allocations: 19.98 kB / 0.7702 GB, free: 15.22 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.9e-05/0.3973, allocations: 8 kB / 0.7702 GB, free: 15.21 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.251e-05/0.3973, allocations: 36.78 kB / 0.7703 GB, free: 15.17 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.42e-07/0.3973, allocations: 0 / 0.7703 GB, free: 15.17 MB / 0.545 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.772e-05/0.3974, allocations: 73.53 kB / 0.7703 GB, free: 15.09 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.082e-05/0.3975, allocations: 4 kB / 0.7703 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.3975, allocations: 0 / 0.7703 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.3975, allocations: 4 kB / 0.7703 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.782e-05/0.3975, allocations: 11.98 kB / 0.7703 GB, free: 15.07 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.489e-06/0.3976, allocations: 0 / 0.7703 GB, free: 15.07 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.641e-05/0.3976, allocations: 4 kB / 0.7703 GB, free: 15.07 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.182e-06/0.3976, allocations: 4 kB / 0.7704 GB, free: 15.07 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.453e-05/0.3977, allocations: 113.8 kB / 0.7705 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.336e-05/0.3977, allocations: 7.938 kB / 0.7705 GB, free: 14.94 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001325/0.3978, allocations: 69.64 kB / 0.7705 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.3978, allocations: 3.938 kB / 0.7705 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3978, allocations: 0 / 0.7705 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.3978, allocations: 0 / 0.7705 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002898/0.3981, allocations: 319.4 kB / 0.7708 GB, free: 14.48 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.3981, allocations: 0 / 0.7708 GB, free: 14.48 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.653e-05/0.3982, allocations: 11.98 kB / 0.7709 GB, free: 14.47 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.3982, allocations: 192 / 0.7709 GB, free: 14.47 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/0.3982, allocations: 12 kB / 0.7709 GB, free: 14.46 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3982, allocations: 240 / 0.7709 GB, free: 14.46 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.3982, allocations: 0 / 0.7709 GB, free: 14.46 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001867/0.3984, allocations: 196.2 kB / 0.7711 GB, free: 14.25 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5e-05/0.3985, allocations: 81.61 kB / 0.7711 GB, free: 14.15 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.151e-05/0.3985, allocations: 0 / 0.7711 GB, free: 14.15 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.662e-05/0.3986, allocations: 4 kB / 0.7711 GB, free: 14.15 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.478e-05/0.3986, allocations: 3.984 kB / 0.7711 GB, free: 14.14 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.602e-06/0.3986, allocations: 8 kB / 0.7711 GB, free: 14.14 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.587e-05/0.3987, allocations: 83.27 kB / 0.7712 GB, free: 14.05 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3987, allocations: 0 / 0.7712 GB, free: 14.05 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002293/0.3989, allocations: 16 kB / 0.7712 GB, free: 14.04 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (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.0004631/0.3994, allocations: 0.7483 MB / 0.772 GB, free: 13.26 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 9.987e-05/0.3995, allocations: 31.98 kB / 0.772 GB, free: 13.23 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.3995, allocations: 0 / 0.772 GB, free: 13.23 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.295e-05/0.3995, allocations: 20 kB / 0.772 GB, free: 13.21 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000224/0.3997, allocations: 12.59 kB / 0.772 GB, free: 13.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001055/0.4008, allocations: 1.319 MB / 0.7733 GB, free: 11.79 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002203/0.401, allocations: 0.6807 MB / 0.774 GB, free: 11.09 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 4.002e-05/0.4011, allocations: 12.02 kB / 0.774 GB, free: 11.07 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.329e-05/0.4011, allocations: 15.44 kB / 0.774 GB, free: 11.06 MB / 0.545 GB Notification: Performance of SimCode: time 2.9e-07/0.4011, allocations: 0 / 0.774 GB, free: 11.06 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01983/0.421, allocations: 1.65 MB / 0.7756 GB, free: 9.609 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.137/7.558, allocations: 13.33 kB / 0.7756 GB, free: 9.602 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)