Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.009278/0.009278, allocations: 100.5 kB / 15.73 MB, free: 5.953 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.001971/0.001971, allocations: 192.8 kB / 16.67 MB, free: 5.875 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.448/1.448, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.589/2.589, allocations: 437 MB / 0.7105 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002022/0.002022, allocations: 72.09 kB / 1.018 GB, free: 9.871 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.818/0.82, allocations: 151.6 MB / 1.166 GB, free: 3.723 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002415/0.8224, allocations: 1.279 MB / 1.167 GB, free: 2.438 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001111/0.8236, allocations: 0.6135 MB / 1.168 GB, free: 1.824 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.551e-05/0.8236, allocations: 0 / 1.168 GB, free: 1.824 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.357e-05/0.8236, allocations: 3.938 kB / 1.168 GB, free: 1.82 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.244e-05/0.8237, allocations: 3.984 kB / 1.168 GB, free: 1.816 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000563/0.8243, allocations: 144.5 kB / 1.168 GB, free: 1.676 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 6.391e-05/0.8244, allocations: 23.86 kB / 1.168 GB, free: 1.652 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.436e-05/0.8244, allocations: 4 kB / 1.168 GB, free: 1.648 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 4.19e-05/0.8245, allocations: 11.92 kB / 1.168 GB, free: 1.637 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.718e-05/0.8245, allocations: 7.984 kB / 1.168 GB, free: 1.629 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.273e-05/0.8245, allocations: 0 / 1.168 GB, free: 1.629 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005341/0.8251, allocations: 339.4 kB / 1.169 GB, free: 1.297 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.775e-05/0.8251, allocations: 11.92 kB / 1.169 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.597e-05/0.8251, allocations: 7.938 kB / 1.169 GB, free: 1.277 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002816/0.8254, allocations: 143.3 kB / 1.169 GB, free: 1.141 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.87e-06/0.8254, allocations: 4 kB / 1.169 GB, free: 1.137 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.593e-06/0.8254, allocations: 0 / 1.169 GB, free: 1.137 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.8254, allocations: 0 / 1.169 GB, free: 1.137 MB / 0.8887 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.0005013/0.826, allocations: 359.1 kB / 1.169 GB, free: 0.7344 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.826, allocations: 15.97 kB / 1.169 GB, free: 0.7188 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.238e-05/0.8261, allocations: 42.67 kB / 1.169 GB, free: 0.668 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.759e-05/0.8261, allocations: 0.9375 kB / 1.169 GB, free: 0.668 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001477/0.8262, allocations: 168.3 kB / 1.169 GB, free: 476 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.8263, allocations: 384 / 1.169 GB, free: 476 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.358e-05/0.8263, allocations: 4.375 kB / 1.169 GB, free: 472 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001171/0.8264, allocations: 46.19 kB / 1.169 GB, free: 420 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.8264, allocations: 3.938 kB / 1.169 GB, free: 416 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.428e-06/0.8264, allocations: 0 / 1.169 GB, free: 416 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.8265, allocations: 0 / 1.169 GB, free: 416 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.393e-05/0.8265, allocations: 12 kB / 1.169 GB, free: 404 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001983/0.8267, allocations: 161.6 kB / 1.169 GB, free: 192 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001999/0.8269, allocations: 46.64 kB / 1.17 GB, free: 136 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.021e-05/0.827, allocations: 24.83 kB / 1.17 GB, free: 108 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.976e-05/0.827, allocations: 0 / 1.17 GB, free: 108 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.29e-05/0.827, allocations: 38.56 kB / 1.17 GB, free: 60 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=4): time 8.42e-07/0.827, allocations: 0 / 1.17 GB, free: 60 kB / 0.8887 GB Notification: Performance of matching and sorting (n=6): time 0.0007027/0.8277, allocations: 306.3 kB / 1.17 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.182e-05/0.8278, allocations: 51.41 kB / 1.17 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.02e-05/0.8279, allocations: 105.8 kB / 1.17 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.926e-05/0.8279, allocations: 29.7 kB / 1.17 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 3.842e-05/0.828, allocations: 80.14 kB / 1.17 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.128e-05/0.828, allocations: 23.78 kB / 1.17 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.427e-05/0.828, allocations: 21.72 kB / 1.17 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001355/0.8282, allocations: 314.8 kB / 1.17 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.941e-05/0.8282, allocations: 11.98 kB / 1.17 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.195e-05/0.8282, allocations: 8 kB / 1.17 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.697e-05/0.8283, allocations: 41 kB / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.82e-07/0.8283, allocations: 0 / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000107/0.8284, allocations: 73.56 kB / 1.171 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.8285, allocations: 4 kB / 1.171 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.8285, allocations: 0 / 1.171 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.8285, allocations: 3.938 kB / 1.171 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.277e-05/0.8286, allocations: 15.98 kB / 1.171 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.8286, allocations: 0 / 1.171 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.67e-05/0.8286, allocations: 0 / 1.171 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.212e-05/0.8286, allocations: 8 kB / 1.171 GB, free: 14.88 MB / 0.9044 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.661e-05/0.8287, allocations: 109.8 kB / 1.171 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.467e-05/0.8287, allocations: 7.938 kB / 1.171 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001573/0.8289, allocations: 73.58 kB / 1.171 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.8289, allocations: 3.938 kB / 1.171 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.8289, allocations: 0 / 1.171 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.8289, allocations: 3.938 kB / 1.171 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003598/0.8293, allocations: 315.4 kB / 1.171 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.8293, allocations: 4.031 kB / 1.171 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.441e-05/0.8293, allocations: 16.11 kB / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.8294, allocations: 4 kB / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.8294, allocations: 4 kB / 1.171 GB, free: 14.26 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.8294, allocations: 0 / 1.171 GB, free: 14.26 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.8294, allocations: 0 / 1.171 GB, free: 14.26 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002028/0.8296, allocations: 176.3 kB / 1.171 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.414e-05/0.8297, allocations: 89.19 kB / 1.171 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.345e-05/0.8297, allocations: 0 / 1.171 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.252e-05/0.8298, allocations: 8 kB / 1.171 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.726e-05/0.8298, allocations: 7.922 kB / 1.171 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.953e-06/0.8298, allocations: 4 kB / 1.171 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.179e-05/0.8299, allocations: 79.8 kB / 1.171 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8299, allocations: 0 / 1.171 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002473/0.8301, allocations: 19.94 kB / 1.171 GB, free: 13.85 MB / 0.9044 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.0006197/0.8307, allocations: 0.7366 MB / 1.172 GB, free: 13.08 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001284/0.8309, allocations: 39.91 kB / 1.172 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.8309, allocations: 0 / 1.172 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 3.047e-05/0.8309, allocations: 19.94 kB / 1.172 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002289/0.8312, allocations: 4 kB / 1.172 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001376/0.8325, allocations: 1.323 MB / 1.174 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003257/0.8329, allocations: 0.6807 MB / 1.174 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 2.904e-05/0.8329, allocations: 8.547 kB / 1.174 GB, free: 10.9 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.66e-05/0.833, allocations: 19.52 kB / 1.174 GB, free: 10.88 MB / 0.9044 GB Notification: Performance of SimCode: time 3.8e-07/0.833, allocations: 3.938 kB / 1.174 GB, free: 10.88 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02432/0.8573, allocations: 1.612 MB / 1.176 GB, free: 9.449 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.199/9.056, allocations: 14.81 kB / 1.176 GB, free: 9.438 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)