Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.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_DerivativeCheck2,fileNamePrefix="Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",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.001421/0.001421, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001834/0.001834, allocations: 194 kB / 16.53 MB, free: 6.699 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.569/1.569, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.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.603/2.603, allocations: 437 MB / 0.7104 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 55.91 kB / 0.8693 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.668/0.6695, allocations: 151.6 MB / 1.017 GB, free: 2.48 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002726/0.6722, allocations: 1.288 MB / 1.019 GB, free: 1.18 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001029/0.6733, allocations: 0.615 MB / 1.019 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.723e-05/0.6733, allocations: 3.938 kB / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.677e-05/0.6734, allocations: 3.938 kB / 1.019 GB, free: 0.5547 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.055e-05/0.6734, allocations: 0 / 1.019 GB, free: 0.5547 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005221/0.674, allocations: 155.3 kB / 1.019 GB, free: 412 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.866e-05/0.674, allocations: 23.92 kB / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.744e-05/0.6741, allocations: 4 kB / 1.019 GB, free: 384 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.485e-05/0.6741, allocations: 15.94 kB / 1.019 GB, free: 368 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.021e-05/0.6742, allocations: 23.91 kB / 1.019 GB, free: 344 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.309e-05/0.6742, allocations: 0 / 1.019 GB, free: 344 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004769/0.6747, allocations: 343.3 kB / 1.02 GB, free: 0 / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.649e-05/0.6747, allocations: 4.078 kB / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.035e-05/0.6747, allocations: 19.92 kB / 1.02 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002631/0.675, allocations: 153.8 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.675, allocations: 0 / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.903e-06/0.675, allocations: 0 / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.194e-06/0.675, allocations: 0 / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004257/0.6755, allocations: 371.4 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.6755, allocations: 16.02 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.728e-05/0.6756, allocations: 30.75 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.437e-05/0.6756, allocations: 4.938 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001134/0.6757, allocations: 160.4 kB / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.426e-05/0.6757, allocations: 8.312 kB / 1.021 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.143e-05/0.6758, allocations: 12.27 kB / 1.021 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001352/0.6759, allocations: 54.23 kB / 1.021 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.6759, allocations: 3.938 kB / 1.021 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.676, allocations: 4 kB / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.676, allocations: 0 / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.397e-05/0.676, allocations: 23.92 kB / 1.021 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001898/0.6762, allocations: 161.7 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001141/0.6764, allocations: 54.56 kB / 1.021 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.002e-05/0.6764, allocations: 36.84 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.6764, allocations: 0 / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.728e-05/0.6765, allocations: 34.56 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 4.138e-06/0.6765, allocations: 0 / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.001164/0.6777, allocations: 0.5916 MB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.208e-05/0.6777, allocations: 59.41 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.987e-05/0.6778, allocations: 89.86 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.6778, allocations: 33.7 kB / 1.022 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.615e-05/0.6778, allocations: 84.12 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.493e-05/0.6779, allocations: 31.47 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.252e-05/0.6779, allocations: 29.7 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001043/0.678, allocations: 314.8 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.067e-05/0.6781, allocations: 19.98 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.919e-05/0.6781, allocations: 32.11 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.124e-05/0.6782, allocations: 52.61 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.6782, allocations: 0 / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000143/0.6784, allocations: 109.5 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.6784, allocations: 8 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.6784, allocations: 0 / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.6784, allocations: 0 / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.938e-05/0.6785, allocations: 16 kB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.6785, allocations: 0 / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.628e-05/0.6786, allocations: 11.98 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.101e-06/0.6786, allocations: 4 kB / 1.022 GB, free: 13.09 MB / 0.7794 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 (13): * Single equations (assignments): 13 * 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.523e-05/0.6787, allocations: 119.3 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.811e-05/0.6787, allocations: 11.84 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001834/0.6789, allocations: 109.7 kB / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.6789, allocations: 4 kB / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.6789, allocations: 0 / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.6789, allocations: 3.984 kB / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003697/0.6793, allocations: 354.4 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.6793, allocations: 3.984 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.6794, allocations: 20 kB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.6794, allocations: 0 / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.326e-06/0.6794, allocations: 0 / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.6794, allocations: 4 kB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.6794, allocations: 4 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002362/0.6797, allocations: 223.4 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.8e-05/0.6797, allocations: 89.14 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.579e-05/0.6798, allocations: 4 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.558e-05/0.6799, allocations: 0 / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.922e-05/0.6799, allocations: 11.92 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-06/0.6799, allocations: 4 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.428e-05/0.6799, allocations: 79.28 kB / 1.023 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.6799, allocations: 0 / 1.023 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002735/0.6802, allocations: 43.92 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_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 (11): * Single equations (assignments): 11 * 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.0005526/0.6808, allocations: 0.7827 MB / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001496/0.6809, allocations: 67.86 kB / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.6809, allocations: 0 / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.375e-05/0.681, allocations: 31.98 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002125/0.6812, allocations: 4 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001334/0.6826, allocations: 1.496 MB / 1.026 GB, free: 9.426 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000207/0.6828, allocations: 0.6885 MB / 1.026 GB, free: 8.711 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.352e-05/0.6828, allocations: 4 kB / 1.026 GB, free: 8.707 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.957e-05/0.6829, allocations: 27.42 kB / 1.026 GB, free: 8.68 MB / 0.7794 GB Notification: Performance of SimCode: time 1.91e-07/0.6829, allocations: 0 / 1.026 GB, free: 8.68 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01883/0.7017, allocations: 2.029 MB / 1.028 GB, free: 6.812 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.362/8.064, allocations: 16.28 kB / 1.028 GB, free: 6.801 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_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_DerivativeCheck2.fmu > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)