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.00767/0.00767, allocations: 99.98 kB / 15.73 MB, free: 6.02 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.001855/0.001855, allocations: 189.6 kB / 16.67 MB, free: 5.938 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.397/1.397, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002441/0.002441, allocations: 297.5 kB / 290.8 MB, free: 14.41 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.232/1.232, allocations: 178.5 MB / 0.5074 GB, free: 12.63 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002667/0.002667, allocations: 107.8 kB / 0.6943 GB, free: 15.15 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4414/0.4441, allocations: 89.13 MB / 0.7813 GB, free: 1.129 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.001994/0.4461, allocations: 1.276 MB / 0.7826 GB, free: 128 kB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001072/0.4472, allocations: 0.6117 MB / 0.7832 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.941e-05/0.4473, allocations: 0 / 0.7832 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.177e-05/0.4473, allocations: 7.875 kB / 0.7832 GB, free: 15.63 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.746e-05/0.4473, allocations: 5.547 kB / 0.7832 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005526/0.4479, allocations: 143.6 kB / 0.7833 GB, free: 15.53 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.198e-05/0.448, allocations: 25.17 kB / 0.7834 GB, free: 15.51 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.953e-05/0.448, allocations: 2.781 kB / 0.7834 GB, free: 15.51 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.747e-05/0.4481, allocations: 8.922 kB / 0.7834 GB, free: 15.51 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.616e-05/0.4481, allocations: 14.3 kB / 0.7834 GB, free: 15.5 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.213e-05/0.4482, allocations: 1.531 kB / 0.7834 GB, free: 15.5 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005326/0.4487, allocations: 341.5 kB / 0.7837 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.465e-05/0.4487, allocations: 5.266 kB / 0.7837 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.447e-05/0.4487, allocations: 7.875 kB / 0.7837 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002664/0.449, allocations: 150.5 kB / 0.7839 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.449, allocations: 0 / 0.7839 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.393e-06/0.449, allocations: 0 / 0.7839 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.028e-05/0.4491, allocations: 5.594 kB / 0.7839 GB, free: 15.21 MB / 0.5606 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.0004573/0.4495, allocations: 362.8 kB / 0.7842 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.4496, allocations: 8.688 kB / 0.7842 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.378e-05/0.4496, allocations: 32.19 kB / 0.7843 GB, free: 14.78 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.79e-05/0.4496, allocations: 6.203 kB / 0.7843 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001359/0.4498, allocations: 165.6 kB / 0.7844 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.385e-05/0.4498, allocations: 1.375 kB / 0.7844 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.211e-05/0.4498, allocations: 2.625 kB / 0.7844 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001141/0.4499, allocations: 44.69 kB / 0.7845 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.45, allocations: 3.938 kB / 0.7845 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.007e-06/0.45, allocations: 1.344 kB / 0.7845 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.45, allocations: 0 / 0.7845 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.451e-05/0.45, allocations: 18.31 kB / 0.7845 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002007/0.4502, allocations: 162.1 kB / 0.7846 GB, free: 14.31 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001879/0.4504, allocations: 43.83 kB / 0.7847 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.919e-05/0.4505, allocations: 25.5 kB / 0.7847 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.115e-05/0.4505, allocations: 4 kB / 0.7847 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.361e-05/0.4505, allocations: 32.25 kB / 0.7847 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=4): time 1.082e-06/0.4505, allocations: 0 / 0.7847 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6): time 0.000645/0.4512, allocations: 310.7 kB / 0.785 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.534e-05/0.4513, allocations: 60.77 kB / 0.7851 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.79e-05/0.4513, allocations: 97.58 kB / 0.7852 GB, free: 13.74 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.597e-05/0.4514, allocations: 31.11 kB / 0.7852 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.159e-05/0.4514, allocations: 84.14 kB / 0.7853 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.052e-05/0.4514, allocations: 22.25 kB / 0.7853 GB, free: 13.6 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.02e-05/0.4515, allocations: 19.41 kB / 0.7853 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001266/0.4516, allocations: 316 kB / 0.7856 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.779e-05/0.4516, allocations: 9.734 kB / 0.7857 GB, free: 13.26 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.33e-05/0.4517, allocations: 11.47 kB / 0.7857 GB, free: 13.26 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.166e-05/0.4517, allocations: 31.8 kB / 0.7857 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.4518, allocations: 5.156 kB / 0.7857 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001114/0.4519, allocations: 75.53 kB / 0.7858 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.4519, allocations: 6.344 kB / 0.7858 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.4519, allocations: 0 / 0.7858 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.4519, allocations: 0 / 0.7858 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.523e-05/0.452, allocations: 14.02 kB / 0.7858 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.452, allocations: 1.344 kB / 0.7858 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.066e-05/0.452, allocations: 4 kB / 0.7858 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.121e-06/0.452, allocations: 1.5 kB / 0.7858 GB, free: 13.17 MB / 0.5606 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.708e-05/0.4521, allocations: 112.6 kB / 0.7859 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.332e-05/0.4521, allocations: 5.25 kB / 0.7859 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001478/0.4523, allocations: 79.36 kB / 0.786 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.4523, allocations: 3.938 kB / 0.786 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.4523, allocations: 1.156 kB / 0.786 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.4523, allocations: 0 / 0.786 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003408/0.4527, allocations: 311.4 kB / 0.7863 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.4527, allocations: 1.062 kB / 0.7863 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.679e-05/0.4527, allocations: 14.39 kB / 0.7863 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.4528, allocations: 7.969 kB / 0.7863 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.585e-06/0.4528, allocations: 2.844 kB / 0.7863 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.4528, allocations: 4 kB / 0.7863 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.4528, allocations: 1.594 kB / 0.7863 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001945/0.453, allocations: 180.7 kB / 0.7865 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.593e-05/0.453, allocations: 84.38 kB / 0.7866 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.595e-05/0.4531, allocations: 5.312 kB / 0.7866 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.87e-05/0.4531, allocations: 5.438 kB / 0.7866 GB, free: 12.35 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.667e-05/0.4532, allocations: 5.297 kB / 0.7866 GB, free: 12.35 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.681e-06/0.4532, allocations: 2.656 kB / 0.7866 GB, free: 12.35 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.103e-05/0.4532, allocations: 78 kB / 0.7867 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4532, allocations: 0 / 0.7867 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002494/0.4535, allocations: 23.09 kB / 0.7867 GB, free: 12.27 MB / 0.5606 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.0005685/0.4541, allocations: 0.7397 MB / 0.7874 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001279/0.4542, allocations: 35.78 kB / 0.7874 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.4542, allocations: 1.25 kB / 0.7874 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 3.305e-05/0.4542, allocations: 19.31 kB / 0.7875 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002178/0.4545, allocations: 4.312 kB / 0.7875 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001277/0.4557, allocations: 1.319 MB / 0.7888 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002934/0.4561, allocations: 0.683 MB / 0.7894 GB, free: 9.531 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.417e-05/0.4561, allocations: 12.47 kB / 0.7894 GB, free: 9.523 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.645e-05/0.4561, allocations: 17.61 kB / 0.7894 GB, free: 9.508 MB / 0.5606 GB Notification: Performance of SimCode: time 2.21e-07/0.4561, allocations: 1.125 kB / 0.7894 GB, free: 9.508 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02375/0.4799, allocations: 1.637 MB / 0.791 GB, free: 8.688 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.239/8.719, allocations: 18.41 kB / 0.7911 GB, free: 8.672 MB / 0.5606 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)