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.004678/0.004678, allocations: 103.1 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.001186/0.001186, allocations: 189.1 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.226/1.226, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001973/0.001974, allocations: 305.6 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.885/0.885, allocations: 169.2 MB / 0.4983 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001684/0.001684, allocations: 95.84 kB / 0.681 GB, free: 7.508 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3871/0.3887, allocations: 86.97 MB / 0.7659 GB, free: 3.93 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002298/0.3911, allocations: 1.264 MB / 0.7671 GB, free: 2.656 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009903/0.3921, allocations: 0.6205 MB / 0.7677 GB, free: 2.035 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.798e-05/0.3921, allocations: 0 / 0.7677 GB, free: 2.035 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.115e-05/0.3922, allocations: 3.938 kB / 0.7677 GB, free: 2.031 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.917e-05/0.3922, allocations: 0 / 0.7677 GB, free: 2.031 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005954/0.3928, allocations: 151.3 kB / 0.7679 GB, free: 1.883 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 6.585e-05/0.3929, allocations: 15.92 kB / 0.7679 GB, free: 1.867 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.106e-05/0.393, allocations: 11.98 kB / 0.7679 GB, free: 1.855 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.584e-05/0.393, allocations: 7.984 kB / 0.7679 GB, free: 1.848 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.241e-05/0.3931, allocations: 7.938 kB / 0.7679 GB, free: 1.84 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 9.979e-06/0.3931, allocations: 0 / 0.7679 GB, free: 1.84 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004942/0.3936, allocations: 347.3 kB / 0.7683 GB, free: 1.5 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.357e-05/0.3936, allocations: 4 kB / 0.7683 GB, free: 1.496 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.51e-05/0.3936, allocations: 7.938 kB / 0.7683 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002562/0.3939, allocations: 154.4 kB / 0.7684 GB, free: 1.34 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3939, allocations: 0 / 0.7684 GB, free: 1.34 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.273e-06/0.3939, allocations: 4 kB / 0.7684 GB, free: 1.336 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.438e-06/0.3939, allocations: 0 / 0.7684 GB, free: 1.336 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.0004352/0.3944, allocations: 359.4 kB / 0.7688 GB, free: 0.9336 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.3944, allocations: 12.03 kB / 0.7688 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.385e-05/0.3944, allocations: 34.73 kB / 0.7688 GB, free: 0.8789 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.59e-05/0.3945, allocations: 0.9375 kB / 0.7688 GB, free: 0.8789 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001102/0.3946, allocations: 172.3 kB / 0.769 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.3946, allocations: 384 / 0.769 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.989e-05/0.3946, allocations: 384 / 0.769 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001051/0.3947, allocations: 50.23 kB / 0.769 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.3948, allocations: 3.938 kB / 0.769 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.957e-06/0.3948, allocations: 0 / 0.769 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.3948, allocations: 0 / 0.769 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.061e-05/0.3948, allocations: 11.98 kB / 0.769 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001829/0.395, allocations: 157.7 kB / 0.7692 GB, free: 408 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002007/0.3952, allocations: 46.5 kB / 0.7692 GB, free: 352 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.478e-05/0.3953, allocations: 20.86 kB / 0.7693 GB, free: 328 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.31e-05/0.3953, allocations: 4 kB / 0.7693 GB, free: 324 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.479e-05/0.3953, allocations: 34.56 kB / 0.7693 GB, free: 280 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=4): time 1.343e-06/0.3953, allocations: 3.938 kB / 0.7693 GB, free: 276 kB / 0.5294 GB Notification: Performance of matching and sorting (n=6): time 0.0006546/0.396, allocations: 310.2 kB / 0.7696 GB, free: 15.91 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.445e-05/0.3961, allocations: 55.41 kB / 0.7696 GB, free: 15.85 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.833e-05/0.3961, allocations: 93.86 kB / 0.7697 GB, free: 15.75 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.34e-05/0.3961, allocations: 33.7 kB / 0.7698 GB, free: 15.71 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.59e-05/0.3962, allocations: 80.14 kB / 0.7698 GB, free: 15.62 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.011e-05/0.3962, allocations: 19.73 kB / 0.7699 GB, free: 15.61 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.729e-05/0.3963, allocations: 21.72 kB / 0.7699 GB, free: 15.58 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001187/0.3964, allocations: 310.8 kB / 0.7702 GB, free: 15.27 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.975e-05/0.3965, allocations: 15.98 kB / 0.7702 GB, free: 15.25 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.299e-05/0.3965, allocations: 11.94 kB / 0.7702 GB, free: 15.24 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.394e-05/0.3965, allocations: 28.86 kB / 0.7702 GB, free: 15.21 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.42e-07/0.3966, allocations: 4 kB / 0.7702 GB, free: 15.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001046/0.3967, allocations: 77.67 kB / 0.7703 GB, free: 15.12 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.3967, allocations: 4 kB / 0.7703 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.84e-06/0.3967, allocations: 0 / 0.7703 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.3967, allocations: 4 kB / 0.7703 GB, free: 15.11 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.34e-05/0.3968, allocations: 11.98 kB / 0.7703 GB, free: 15.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.3968, allocations: 8 kB / 0.7703 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.798e-05/0.3968, allocations: 0 / 0.7703 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.074e-06/0.3968, allocations: 4 kB / 0.7703 GB, free: 15.09 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 7.171e-05/0.3969, allocations: 113.8 kB / 0.7704 GB, free: 14.97 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.412e-05/0.3969, allocations: 7.938 kB / 0.7705 GB, free: 14.96 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001464/0.3971, allocations: 73.58 kB / 0.7705 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.3971, allocations: 0.5156 kB / 0.7705 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.3971, allocations: 0 / 0.7705 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.3971, allocations: 0 / 0.7705 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003193/0.3974, allocations: 319.4 kB / 0.7708 GB, free: 14.51 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3974, allocations: 0 / 0.7708 GB, free: 14.51 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.225e-05/0.3975, allocations: 16.02 kB / 0.7708 GB, free: 14.49 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.077e-06/0.3975, allocations: 3.984 kB / 0.7708 GB, free: 14.49 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.3975, allocations: 4.188 kB / 0.7709 GB, free: 14.48 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.3975, allocations: 7.938 kB / 0.7709 GB, free: 14.48 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3975, allocations: 0 / 0.7709 GB, free: 14.48 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001792/0.3977, allocations: 180.3 kB / 0.771 GB, free: 14.28 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.415e-05/0.3978, allocations: 81.09 kB / 0.7711 GB, free: 14.18 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.317e-05/0.3978, allocations: 8 kB / 0.7711 GB, free: 14.18 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.816e-05/0.3979, allocations: 4 kB / 0.7711 GB, free: 14.17 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.878e-05/0.3979, allocations: 7.984 kB / 0.7711 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.598e-06/0.3979, allocations: 4 kB / 0.7711 GB, free: 14.16 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.465e-05/0.398, allocations: 79.28 kB / 0.7712 GB, free: 14.08 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.21e-07/0.398, allocations: 0 / 0.7712 GB, free: 14.08 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002444/0.3982, allocations: 20 kB / 0.7712 GB, free: 14.06 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.0005175/0.3987, allocations: 0.7443 MB / 0.772 GB, free: 13.29 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001045/0.3989, allocations: 35.92 kB / 0.772 GB, free: 13.25 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.3989, allocations: 0 / 0.772 GB, free: 13.25 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.677e-05/0.3989, allocations: 16 kB / 0.772 GB, free: 13.24 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002164/0.3991, allocations: 9.344 kB / 0.772 GB, free: 13.23 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001169/0.4003, allocations: 1.327 MB / 0.7733 GB, free: 11.82 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000235/0.4005, allocations: 0.6807 MB / 0.774 GB, free: 11.11 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.964e-05/0.4006, allocations: 12.05 kB / 0.774 GB, free: 11.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.924e-05/0.4006, allocations: 11.44 kB / 0.774 GB, free: 11.09 MB / 0.545 GB Notification: Performance of SimCode: time 2.5e-07/0.4006, allocations: 0 / 0.774 GB, free: 11.09 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01667/0.4173, allocations: 1.608 MB / 0.7756 GB, free: 9.672 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.921/7.339, allocations: 3.625 kB / 0.7756 GB, free: 9.672 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)