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.004575/0.004575, allocations: 99.16 kB / 15.73 MB, free: 6.004 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.001236/0.001236, allocations: 191.9 kB / 16.67 MB, free: 5.93 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.363/1.363, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002397/0.002397, allocations: 281.7 kB / 290.8 MB, free: 14.42 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9528/0.9528, allocations: 169.2 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00262/0.00262, allocations: 99.84 kB / 0.681 GB, free: 7.438 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4058/0.4084, allocations: 86.97 MB / 0.7659 GB, free: 3.844 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002254/0.4107, allocations: 1.276 MB / 0.7671 GB, free: 2.559 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009979/0.4117, allocations: 0.6128 MB / 0.7677 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.567e-05/0.4118, allocations: 0 / 0.7677 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.367e-05/0.4118, allocations: 7.922 kB / 0.7678 GB, free: 1.938 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.063e-05/0.4118, allocations: 4 kB / 0.7678 GB, free: 1.934 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005/0.4124, allocations: 147.4 kB / 0.7679 GB, free: 1.789 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 6.468e-05/0.4124, allocations: 23.86 kB / 0.7679 GB, free: 1.766 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.533e-05/0.4125, allocations: 4 kB / 0.7679 GB, free: 1.762 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.18e-05/0.4125, allocations: 8 kB / 0.7679 GB, free: 1.754 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.937e-05/0.4126, allocations: 15.91 kB / 0.7679 GB, free: 1.738 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.059e-05/0.4126, allocations: 0 / 0.7679 GB, free: 1.738 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005229/0.4131, allocations: 343.3 kB / 0.7683 GB, free: 1.402 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 9.027e-06/0.4131, allocations: 0 / 0.7683 GB, free: 1.402 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.624e-05/0.4131, allocations: 15.92 kB / 0.7683 GB, free: 1.387 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000249/0.4134, allocations: 144.6 kB / 0.7684 GB, free: 1.254 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.4134, allocations: 0 / 0.7684 GB, free: 1.254 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.252e-06/0.4134, allocations: 0 / 0.7684 GB, free: 1.254 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.779e-06/0.4134, allocations: 4 kB / 0.7684 GB, free: 1.25 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.0004479/0.4139, allocations: 363.1 kB / 0.7688 GB, free: 0.8438 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.4139, allocations: 12.03 kB / 0.7688 GB, free: 0.832 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.669e-05/0.414, allocations: 34.69 kB / 0.7688 GB, free: 0.7891 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.283e-05/0.414, allocations: 0.9375 kB / 0.7688 GB, free: 0.7891 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001285/0.4141, allocations: 176.3 kB / 0.769 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.457e-05/0.4142, allocations: 8.375 kB / 0.769 GB, free: 0.5703 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.523e-05/0.4142, allocations: 384 / 0.769 GB, free: 0.5703 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001097/0.4143, allocations: 46.25 kB / 0.769 GB, free: 0.5195 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.4143, allocations: 3.938 kB / 0.769 GB, free: 0.5156 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.705e-06/0.4143, allocations: 0 / 0.769 GB, free: 0.5156 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.4143, allocations: 3.984 kB / 0.7691 GB, free: 0.5117 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.045e-05/0.4144, allocations: 8 kB / 0.7691 GB, free: 0.5039 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001699/0.4145, allocations: 165.5 kB / 0.7692 GB, free: 300 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001771/0.4147, allocations: 42.61 kB / 0.7693 GB, free: 248 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.672e-05/0.4148, allocations: 20.94 kB / 0.7693 GB, free: 224 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.11e-05/0.4148, allocations: 4 kB / 0.7693 GB, free: 220 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.32e-05/0.4148, allocations: 30.56 kB / 0.7693 GB, free: 180 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=4): time 9.92e-07/0.4148, allocations: 0 / 0.7693 GB, free: 180 kB / 0.5294 GB Notification: Performance of matching and sorting (n=6): time 0.0006095/0.4154, allocations: 306.3 kB / 0.7696 GB, free: 15.82 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.42e-05/0.4155, allocations: 59.34 kB / 0.7697 GB, free: 15.75 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.504e-05/0.4156, allocations: 97.78 kB / 0.7698 GB, free: 15.65 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.4156, allocations: 37.7 kB / 0.7698 GB, free: 15.61 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 3.879e-05/0.4156, allocations: 80.14 kB / 0.7699 GB, free: 15.52 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.646e-05/0.4157, allocations: 19.8 kB / 0.7699 GB, free: 15.5 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.166e-05/0.4157, allocations: 25.7 kB / 0.7699 GB, free: 15.47 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001194/0.4158, allocations: 310.8 kB / 0.7702 GB, free: 15.16 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.779e-05/0.4159, allocations: 12 kB / 0.7702 GB, free: 15.15 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.111e-05/0.4159, allocations: 11.98 kB / 0.7702 GB, free: 15.14 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.617e-05/0.416, allocations: 29.02 kB / 0.7703 GB, free: 15.11 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.31e-07/0.416, allocations: 4 kB / 0.7703 GB, free: 15.1 MB / 0.545 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001033/0.4161, allocations: 77.56 kB / 0.7703 GB, free: 15.02 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.4161, allocations: 4 kB / 0.7703 GB, free: 15.02 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.4161, allocations: 3.938 kB / 0.7703 GB, free: 15.01 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.4161, allocations: 4 kB / 0.7703 GB, free: 15.01 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.882e-05/0.4162, allocations: 8 kB / 0.7704 GB, free: 15 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.4162, allocations: 0 / 0.7704 GB, free: 15 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.869e-05/0.4162, allocations: 3.984 kB / 0.7704 GB, free: 15 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-06/0.4162, allocations: 4 kB / 0.7704 GB, free: 14.99 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.29e-05/0.4163, allocations: 116.2 kB / 0.7705 GB, free: 14.87 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.584e-05/0.4163, allocations: 7.938 kB / 0.7705 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001332/0.4165, allocations: 69.59 kB / 0.7705 GB, free: 14.79 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.4165, allocations: 0 / 0.7705 GB, free: 14.79 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.4165, allocations: 0 / 0.7705 GB, free: 14.79 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.4165, allocations: 3.984 kB / 0.7705 GB, free: 14.78 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003178/0.4168, allocations: 315.5 kB / 0.7708 GB, free: 14.41 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.4168, allocations: 4.062 kB / 0.7709 GB, free: 14.41 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.953e-05/0.4169, allocations: 11.94 kB / 0.7709 GB, free: 14.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.4169, allocations: 4.031 kB / 0.7709 GB, free: 14.39 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.858e-05/0.4169, allocations: 11.94 kB / 0.7709 GB, free: 14.38 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.4169, allocations: 0 / 0.7709 GB, free: 14.38 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.4169, allocations: 4.5 kB / 0.7709 GB, free: 14.38 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001827/0.4171, allocations: 176.3 kB / 0.7711 GB, free: 14.19 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.621e-05/0.4172, allocations: 89.03 kB / 0.7711 GB, free: 14.08 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.143e-05/0.4172, allocations: 0 / 0.7711 GB, free: 14.08 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.712e-05/0.4173, allocations: 8.062 kB / 0.7711 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.727e-05/0.4173, allocations: 7.922 kB / 0.7712 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-06/0.4173, allocations: 4 kB / 0.7712 GB, free: 14.06 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.294e-05/0.4174, allocations: 87.27 kB / 0.7712 GB, free: 13.98 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4174, allocations: 0 / 0.7712 GB, free: 13.98 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002325/0.4176, allocations: 15.94 kB / 0.7713 GB, free: 13.96 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.0005186/0.4181, allocations: 0.7436 MB / 0.772 GB, free: 13.19 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001031/0.4182, allocations: 31.94 kB / 0.772 GB, free: 13.16 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.4183, allocations: 0 / 0.772 GB, free: 13.16 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.887e-05/0.4183, allocations: 19.92 kB / 0.772 GB, free: 13.14 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002141/0.4185, allocations: 10.84 kB / 0.772 GB, free: 13.13 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001214/0.4197, allocations: 1.317 MB / 0.7733 GB, free: 11.73 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000278/0.42, allocations: 0.6807 MB / 0.774 GB, free: 11.02 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.93e-05/0.4201, allocations: 8.234 kB / 0.774 GB, free: 11.02 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.905e-05/0.4201, allocations: 15.44 kB / 0.774 GB, free: 11 MB / 0.545 GB Notification: Performance of SimCode: time 3.61e-07/0.4201, allocations: 0 / 0.774 GB, free: 11 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02311/0.4432, allocations: 1.649 MB / 0.7756 GB, free: 9.551 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.66/8.103, allocations: 7.594 kB / 0.7756 GB, free: 9.547 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.csv --start-time -2 --stop-time 2 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0016 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)