Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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_dp_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_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.004762/0.004762, allocations: 96.53 kB / 15.73 MB, free: 6.043 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.001233/0.001233, allocations: 196.6 kB / 16.67 MB, free: 5.969 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.375/1.375, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002505/0.002505, allocations: 286.6 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.012/1.012, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002642/0.002642, allocations: 100.1 kB / 0.681 GB, free: 24 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1708/0.1734, allocations: 86.97 MB / 0.7659 GB, free: 8.973 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002376/0.1759, allocations: 1.274 MB / 0.7671 GB, free: 7.688 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001063/0.1769, allocations: 0.6071 MB / 0.7677 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.164e-05/0.177, allocations: 0 / 0.7677 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.796e-05/0.177, allocations: 4 kB / 0.7677 GB, free: 7.074 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.207e-05/0.1771, allocations: 3.938 kB / 0.7677 GB, free: 7.07 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005357/0.1776, allocations: 145.5 kB / 0.7679 GB, free: 6.93 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 5.621e-05/0.1777, allocations: 23.91 kB / 0.7679 GB, free: 6.906 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.368e-05/0.1777, allocations: 0 / 0.7679 GB, free: 6.906 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.271e-05/0.1777, allocations: 7.938 kB / 0.7679 GB, free: 6.898 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.788e-05/0.1778, allocations: 7.984 kB / 0.7679 GB, free: 6.891 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.176e-05/0.1778, allocations: 4 kB / 0.7679 GB, free: 6.887 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005279/0.1783, allocations: 347.3 kB / 0.7683 GB, free: 6.547 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.399e-05/0.1784, allocations: 7.938 kB / 0.7683 GB, free: 6.539 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.456e-05/0.1784, allocations: 4 kB / 0.7683 GB, free: 6.535 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002804/0.1787, allocations: 155.8 kB / 0.7684 GB, free: 6.383 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.1787, allocations: 0 / 0.7684 GB, free: 6.383 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.112e-06/0.1787, allocations: 0 / 0.7684 GB, free: 6.383 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.107e-06/0.1787, allocations: 0 / 0.7684 GB, free: 6.383 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.0004604/0.1792, allocations: 363 kB / 0.7688 GB, free: 5.977 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.1792, allocations: 8.625 kB / 0.7688 GB, free: 5.969 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.447e-05/0.1793, allocations: 38.75 kB / 0.7688 GB, free: 5.922 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.556e-05/0.1793, allocations: 4.938 kB / 0.7688 GB, free: 5.918 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001486/0.1794, allocations: 168.3 kB / 0.769 GB, free: 5.715 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/0.1795, allocations: 8.25 kB / 0.769 GB, free: 5.707 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.106e-05/0.1795, allocations: 4.375 kB / 0.769 GB, free: 5.703 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001015/0.1796, allocations: 42.19 kB / 0.769 GB, free: 5.656 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.888e-06/0.1796, allocations: 3.938 kB / 0.769 GB, free: 5.652 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.183e-06/0.1796, allocations: 4 kB / 0.769 GB, free: 5.648 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.1796, allocations: 0 / 0.769 GB, free: 5.648 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.804e-05/0.1797, allocations: 11.98 kB / 0.769 GB, free: 5.637 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001879/0.1799, allocations: 161.7 kB / 0.7692 GB, free: 5.43 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001743/0.1801, allocations: 38.61 kB / 0.7692 GB, free: 5.383 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.744e-05/0.1801, allocations: 24.88 kB / 0.7693 GB, free: 5.355 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.657e-05/0.1801, allocations: 4 kB / 0.7693 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.585e-05/0.1802, allocations: 34.56 kB / 0.7693 GB, free: 5.309 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.1802, allocations: 0 / 0.7693 GB, free: 5.309 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6): time 0.0006234/0.1808, allocations: 306.3 kB / 0.7696 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.1808, allocations: 51.41 kB / 0.7696 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.986e-05/0.1809, allocations: 101.8 kB / 0.7697 GB, free: 4.785 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.181, allocations: 25.7 kB / 0.7698 GB, free: 4.754 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.687e-05/0.181, allocations: 80.14 kB / 0.7698 GB, free: 4.672 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.093e-05/0.181, allocations: 27.78 kB / 0.7699 GB, free: 4.645 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.441e-05/0.1811, allocations: 17.72 kB / 0.7699 GB, free: 4.621 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000141/0.1812, allocations: 318.8 kB / 0.7702 GB, free: 4.301 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.629e-05/0.1813, allocations: 11.98 kB / 0.7702 GB, free: 4.289 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.654e-05/0.1813, allocations: 15.98 kB / 0.7702 GB, free: 4.273 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.301e-05/0.1814, allocations: 36.8 kB / 0.7702 GB, free: 4.234 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.21e-07/0.1814, allocations: 3.938 kB / 0.7703 GB, free: 4.23 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001125/0.1815, allocations: 65.58 kB / 0.7703 GB, free: 4.16 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.1815, allocations: 8 kB / 0.7703 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.1815, allocations: 0 / 0.7703 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.1815, allocations: 0 / 0.7703 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.417e-05/0.1816, allocations: 15.98 kB / 0.7703 GB, free: 4.137 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.221e-06/0.1816, allocations: 4.234 kB / 0.7703 GB, free: 4.133 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.681e-05/0.1816, allocations: 0 / 0.7703 GB, free: 4.133 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.338e-06/0.1816, allocations: 7.984 kB / 0.7703 GB, free: 4.125 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 8.267e-05/0.1817, allocations: 114.4 kB / 0.7705 GB, free: 4.004 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.237e-05/0.1817, allocations: 3.938 kB / 0.7705 GB, free: 4 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001548/0.1819, allocations: 73.64 kB / 0.7705 GB, free: 3.922 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.1819, allocations: 7.938 kB / 0.7705 GB, free: 3.914 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.1819, allocations: 0 / 0.7705 GB, free: 3.914 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.574e-06/0.1819, allocations: 4 kB / 0.7705 GB, free: 3.91 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003384/0.1823, allocations: 311.4 kB / 0.7708 GB, free: 3.547 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1823, allocations: 0 / 0.7708 GB, free: 3.547 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.217e-05/0.1824, allocations: 12 kB / 0.7709 GB, free: 3.535 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.1824, allocations: 3.984 kB / 0.7709 GB, free: 3.531 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-06/0.1824, allocations: 0 / 0.7709 GB, free: 3.531 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.1824, allocations: 192 / 0.7709 GB, free: 3.531 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/0.1824, allocations: 8 kB / 0.7709 GB, free: 3.523 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001975/0.1826, allocations: 184.8 kB / 0.771 GB, free: 3.324 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.536e-05/0.1827, allocations: 85.12 kB / 0.7711 GB, free: 3.223 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.146e-05/0.1827, allocations: 0 / 0.7711 GB, free: 3.223 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.026e-05/0.1828, allocations: 4 kB / 0.7711 GB, free: 3.219 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.858e-05/0.1828, allocations: 4 kB / 0.7711 GB, free: 3.215 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/0.1828, allocations: 3.984 kB / 0.7711 GB, free: 3.211 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.206e-05/0.1829, allocations: 83.27 kB / 0.7712 GB, free: 3.129 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1829, allocations: 4.062 kB / 0.7712 GB, free: 3.125 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002419/0.1831, allocations: 27.88 kB / 0.7712 GB, free: 3.098 MB / 0.5606 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.0005582/0.1837, allocations: 0.7409 MB / 0.772 GB, free: 2.328 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001144/0.1838, allocations: 36.05 kB / 0.772 GB, free: 2.293 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.1838, allocations: 3.938 kB / 0.772 GB, free: 2.289 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 3.166e-05/0.1838, allocations: 16 kB / 0.772 GB, free: 2.273 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000209/0.1841, allocations: 0 / 0.772 GB, free: 2.273 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001306/0.1854, allocations: 1.323 MB / 0.7733 GB, free: 0.8633 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003338/0.1857, allocations: 0.6807 MB / 0.774 GB, free: 160 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.953e-05/0.1857, allocations: 4 kB / 0.774 GB, free: 156 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.293e-05/0.1858, allocations: 19.42 kB / 0.774 GB, free: 136 kB / 0.5606 GB Notification: Performance of SimCode: time 2.6e-07/0.1858, allocations: 0 / 0.774 GB, free: 136 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3046/0.4904, allocations: 1.616 MB / 0.7756 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.623/8.114, allocations: 6.734 kB / 0.7756 GB, free: 14.35 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)