Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_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.00758/0.00758, allocations: 95.31 kB / 15.73 MB, free: 6.051 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.001552/0.001552, allocations: 204.6 kB / 16.68 MB, free: 5.973 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.368/1.368, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.676/2.676, allocations: 469.4 MB / 0.7421 GB, free: 7.605 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002349/0.002349, allocations: 67.88 kB / 1.064 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3263/0.3287, allocations: 159.1 MB / 1.22 GB, free: 14.67 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.00228/0.331, allocations: 1.275 MB / 1.221 GB, free: 13.38 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0009721/0.332, allocations: 0.6128 MB / 1.222 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.67e-05/0.332, allocations: 0 / 1.222 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.556e-05/0.3321, allocations: 7.938 kB / 1.222 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.018e-05/0.3321, allocations: 0 / 1.222 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005919/0.3327, allocations: 146.1 kB / 1.222 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 6.241e-05/0.3328, allocations: 19.91 kB / 1.222 GB, free: 12.6 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.651e-05/0.3329, allocations: 4 kB / 1.222 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.456e-05/0.3329, allocations: 15.88 kB / 1.222 GB, free: 12.58 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.278e-05/0.333, allocations: 7.984 kB / 1.222 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.133e-05/0.333, allocations: 0 / 1.222 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005003/0.3335, allocations: 347.4 kB / 1.222 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.222e-05/0.3335, allocations: 3.938 kB / 1.222 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.378e-05/0.3335, allocations: 8 kB / 1.222 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002681/0.3338, allocations: 155.4 kB / 1.222 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3338, allocations: 0 / 1.222 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.292e-06/0.3338, allocations: 0 / 1.222 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.3338, allocations: 0 / 1.222 GB, free: 12.07 MB / 0.9825 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.0004244/0.3343, allocations: 363 kB / 1.223 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.3343, allocations: 12.03 kB / 1.223 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.841e-05/0.3344, allocations: 30.75 kB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.036e-05/0.3344, allocations: 4.938 kB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001035/0.3345, allocations: 176.3 kB / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.027e-06/0.3345, allocations: 4.375 kB / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.011e-05/0.3345, allocations: 384 / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001123/0.3347, allocations: 42.25 kB / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/0.3347, allocations: 7.922 kB / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.475e-06/0.3347, allocations: 0 / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.3347, allocations: 0 / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.573e-05/0.3347, allocations: 8 kB / 1.223 GB, free: 11.33 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001506/0.3349, allocations: 165.6 kB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001729/0.3351, allocations: 46.55 kB / 1.223 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.177e-05/0.3351, allocations: 16.94 kB / 1.223 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.965e-05/0.3351, allocations: 4 kB / 1.223 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.796e-05/0.3352, allocations: 30.56 kB / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=4): time 1.082e-06/0.3352, allocations: 0 / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0006013/0.3358, allocations: 314.2 kB / 1.223 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.922e-05/0.3358, allocations: 55.41 kB / 1.223 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.696e-05/0.3359, allocations: 97.84 kB / 1.224 GB, free: 10.47 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.179e-05/0.3359, allocations: 29.7 kB / 1.224 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 2.97e-05/0.3359, allocations: 80.14 kB / 1.224 GB, free: 10.35 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.819e-05/0.336, allocations: 27.72 kB / 1.224 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.339e-05/0.336, allocations: 21.72 kB / 1.224 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 8.401e-05/0.3361, allocations: 314.8 kB / 1.224 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.789e-05/0.3361, allocations: 15.98 kB / 1.224 GB, free: 9.965 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.153e-05/0.3362, allocations: 11.98 kB / 1.224 GB, free: 9.953 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.428e-05/0.3362, allocations: 28.86 kB / 1.224 GB, free: 9.922 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.22e-07/0.3362, allocations: 0 / 1.224 GB, free: 9.922 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.629e-05/0.3363, allocations: 73.58 kB / 1.224 GB, free: 9.844 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.3363, allocations: 4 kB / 1.224 GB, free: 9.84 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.3364, allocations: 240 / 1.224 GB, free: 9.84 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.3364, allocations: 4 kB / 1.224 GB, free: 9.836 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.409e-05/0.3364, allocations: 15.92 kB / 1.224 GB, free: 9.82 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.3364, allocations: 7.984 kB / 1.224 GB, free: 9.812 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.97e-05/0.3365, allocations: 3.938 kB / 1.224 GB, free: 9.809 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.3365, allocations: 4 kB / 1.224 GB, free: 9.805 MB / 0.9825 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.566e-05/0.3366, allocations: 110.4 kB / 1.224 GB, free: 9.688 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.581e-05/0.3366, allocations: 7.938 kB / 1.224 GB, free: 9.68 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001362/0.3367, allocations: 69.64 kB / 1.224 GB, free: 9.602 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.3367, allocations: 0 / 1.224 GB, free: 9.602 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.3367, allocations: 0 / 1.224 GB, free: 9.602 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.3368, allocations: 7.938 kB / 1.224 GB, free: 9.594 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002859/0.337, allocations: 311.9 kB / 1.225 GB, free: 9.23 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3371, allocations: 0 / 1.225 GB, free: 9.23 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.034e-05/0.3371, allocations: 11.94 kB / 1.225 GB, free: 9.219 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.3371, allocations: 3.984 kB / 1.225 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-06/0.3372, allocations: 8 kB / 1.225 GB, free: 9.207 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3372, allocations: 0 / 1.225 GB, free: 9.207 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3372, allocations: 0 / 1.225 GB, free: 9.207 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001846/0.3374, allocations: 188.5 kB / 1.225 GB, free: 9.004 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.471e-05/0.3374, allocations: 85.08 kB / 1.225 GB, free: 8.902 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.414e-05/0.3374, allocations: 4 kB / 1.225 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.826e-05/0.3375, allocations: 0 / 1.225 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.541e-05/0.3375, allocations: 0 / 1.225 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.174e-06/0.3375, allocations: 11.98 kB / 1.225 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.372e-05/0.3376, allocations: 83.22 kB / 1.225 GB, free: 8.805 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3376, allocations: 4.062 kB / 1.225 GB, free: 8.801 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002457/0.3378, allocations: 19.88 kB / 1.225 GB, free: 8.781 MB / 0.9825 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.0004589/0.3383, allocations: 0.7405 MB / 1.226 GB, free: 8.012 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 9.928e-05/0.3384, allocations: 35.92 kB / 1.226 GB, free: 7.977 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3384, allocations: 4.062 kB / 1.226 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.612e-05/0.3384, allocations: 16 kB / 1.226 GB, free: 7.957 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002158/0.3387, allocations: 4 kB / 1.226 GB, free: 7.953 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001088/0.3398, allocations: 1.323 MB / 1.227 GB, free: 6.547 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001978/0.34, allocations: 0.6806 MB / 1.228 GB, free: 5.84 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.045e-05/0.34, allocations: 7.984 kB / 1.228 GB, free: 5.832 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.44e-05/0.3401, allocations: 15.42 kB / 1.228 GB, free: 5.816 MB / 0.9825 GB Notification: Performance of SimCode: time 2.8e-07/0.3401, allocations: 0 / 1.228 GB, free: 5.816 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0623/0.4024, allocations: 1.616 MB / 1.229 GB, free: 4.379 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.083/8.486, allocations: 8.375 kB / 1.229 GB, free: 4.371 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.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 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)