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.001146/0.001146, allocations: 108 kB / 15.6 MB, free: 128 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.001176/0.001176, allocations: 196.6 kB / 16.53 MB, free: 6.672 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.272/1.272, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002077/0.002077, allocations: 283 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9136/0.9136, allocations: 169.3 MB / 0.4982 GB, free: 13.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001799/0.001799, allocations: 89.7 kB / 0.5953 GB, free: 27.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1362, allocations: 86.99 MB / 0.6803 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002233/0.1384, allocations: 1.26 MB / 0.6815 GB, free: 15.32 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009089/0.1394, allocations: 0.614 MB / 0.6821 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.729e-05/0.1394, allocations: 0 / 0.6821 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.705e-05/0.1394, allocations: 3.938 kB / 0.6821 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.748e-05/0.1395, allocations: 3.984 kB / 0.6821 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005243/0.14, allocations: 154.1 kB / 0.6823 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.852e-05/0.1401, allocations: 15.94 kB / 0.6823 GB, free: 14.53 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.049e-05/0.1401, allocations: 3.984 kB / 0.6823 GB, free: 14.53 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.377e-05/0.1402, allocations: 11.94 kB / 0.6823 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.988e-05/0.1402, allocations: 8 kB / 0.6823 GB, free: 14.51 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.126e-05/0.1402, allocations: 0 / 0.6823 GB, free: 14.51 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004857/0.1407, allocations: 347.3 kB / 0.6826 GB, free: 14.17 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.237e-05/0.1407, allocations: 7.922 kB / 0.6827 GB, free: 14.16 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.351e-05/0.1408, allocations: 11.98 kB / 0.6827 GB, free: 14.15 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002471/0.141, allocations: 143.9 kB / 0.6828 GB, free: 14.01 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.141, allocations: 0 / 0.6828 GB, free: 14.01 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.141, allocations: 0 / 0.6828 GB, free: 14.01 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.141, allocations: 4 kB / 0.6828 GB, free: 14 MB / 494.1 MB 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.0003877/0.1414, allocations: 355.4 kB / 0.6831 GB, free: 13.61 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.1415, allocations: 16.62 kB / 0.6832 GB, free: 13.59 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.165e-05/0.1415, allocations: 34.69 kB / 0.6832 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.07e-05/0.1415, allocations: 8.844 kB / 0.6832 GB, free: 13.54 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001119/0.1417, allocations: 160.4 kB / 0.6834 GB, free: 13.34 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.125e-05/0.1417, allocations: 4.375 kB / 0.6834 GB, free: 13.34 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.726e-05/0.1417, allocations: 8.312 kB / 0.6834 GB, free: 13.33 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.884e-05/0.1418, allocations: 38.25 kB / 0.6834 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.1418, allocations: 3.938 kB / 0.6834 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.075e-06/0.1418, allocations: 0 / 0.6834 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.1418, allocations: 8 kB / 0.6834 GB, free: 13.28 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.774e-05/0.1419, allocations: 11.92 kB / 0.6834 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001488/0.142, allocations: 161.6 kB / 0.6836 GB, free: 13.06 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001959/0.1422, allocations: 46.59 kB / 0.6836 GB, free: 13 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.229e-05/0.1423, allocations: 16.86 kB / 0.6836 GB, free: 12.98 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.894e-05/0.1423, allocations: 4.078 kB / 0.6836 GB, free: 12.98 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.279e-05/0.1423, allocations: 38.56 kB / 0.6837 GB, free: 12.93 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.1423, allocations: 0 / 0.6837 GB, free: 12.93 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005814/0.1429, allocations: 302.2 kB / 0.684 GB, free: 12.59 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.471e-05/0.143, allocations: 59.34 kB / 0.684 GB, free: 12.52 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.906e-05/0.143, allocations: 105.8 kB / 0.6841 GB, free: 12.4 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.248e-05/0.1431, allocations: 25.7 kB / 0.6842 GB, free: 12.37 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.082e-05/0.1431, allocations: 80.14 kB / 0.6842 GB, free: 12.29 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.723e-05/0.1431, allocations: 23.66 kB / 0.6843 GB, free: 12.27 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.329e-05/0.1432, allocations: 21.72 kB / 0.6843 GB, free: 12.24 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.719e-05/0.1433, allocations: 314.8 kB / 0.6846 GB, free: 11.92 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.655e-05/0.1433, allocations: 12 kB / 0.6846 GB, free: 11.91 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.342e-05/0.1433, allocations: 11.98 kB / 0.6846 GB, free: 11.9 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.406e-05/0.1434, allocations: 28.86 kB / 0.6846 GB, free: 11.87 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.02e-07/0.1434, allocations: 0 / 0.6846 GB, free: 11.87 MB / 494.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001018/0.1435, allocations: 81.41 kB / 0.6847 GB, free: 11.78 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.118e-05/0.1435, allocations: 4 kB / 0.6847 GB, free: 11.78 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.1435, allocations: 4 kB / 0.6847 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.1435, allocations: 4 kB / 0.6847 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.867e-05/0.1436, allocations: 8 kB / 0.6847 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.1436, allocations: 240 / 0.6847 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.646e-05/0.1436, allocations: 0 / 0.6847 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.718e-06/0.1436, allocations: 7.984 kB / 0.6847 GB, free: 11.75 MB / 494.1 MB 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 6.478e-05/0.1437, allocations: 119.1 kB / 0.6848 GB, free: 11.63 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.567e-05/0.1437, allocations: 7.938 kB / 0.6848 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001305/0.1439, allocations: 73.59 kB / 0.6849 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.1439, allocations: 0 / 0.6849 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.1439, allocations: 0 / 0.6849 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.1439, allocations: 4 kB / 0.6849 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000287/0.1442, allocations: 315.4 kB / 0.6852 GB, free: 11.17 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1442, allocations: 3.938 kB / 0.6852 GB, free: 11.17 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.726e-05/0.1443, allocations: 8 kB / 0.6852 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.1443, allocations: 4 kB / 0.6852 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.196e-06/0.1443, allocations: 4 kB / 0.6852 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1443, allocations: 224 / 0.6852 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.1443, allocations: 8 kB / 0.6852 GB, free: 11.14 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001619/0.1445, allocations: 184.2 kB / 0.6854 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.443e-05/0.1445, allocations: 77.11 kB / 0.6855 GB, free: 10.85 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.516e-05/0.1445, allocations: 8.016 kB / 0.6855 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.878e-05/0.1446, allocations: 0.5156 kB / 0.6855 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.403e-05/0.1446, allocations: 7.938 kB / 0.6855 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.211e-06/0.1446, allocations: 8.062 kB / 0.6855 GB, free: 10.83 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.28e-05/0.1447, allocations: 83.27 kB / 0.6856 GB, free: 10.75 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1447, allocations: 0 / 0.6856 GB, free: 10.75 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002322/0.1449, allocations: 15.98 kB / 0.6856 GB, free: 10.73 MB / 494.1 MB 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.000472/0.1454, allocations: 0.7367 MB / 0.6863 GB, free: 9.965 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 9.368e-05/0.1455, allocations: 35.94 kB / 0.6864 GB, free: 9.93 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1455, allocations: 4 kB / 0.6864 GB, free: 9.926 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.779e-05/0.1455, allocations: 19.92 kB / 0.6864 GB, free: 9.906 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002035/0.1458, allocations: 4 kB / 0.6864 GB, free: 9.902 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001054/0.1468, allocations: 1.305 MB / 0.6877 GB, free: 8.516 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001985/0.147, allocations: 0.6807 MB / 0.6883 GB, free: 7.809 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.158e-05/0.1471, allocations: 11.92 kB / 0.6883 GB, free: 7.797 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.847e-05/0.1471, allocations: 23.38 kB / 0.6884 GB, free: 7.773 MB / 494.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1471, allocations: 0 / 0.6884 GB, free: 7.773 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0229/0.17, allocations: 1.59 MB / 0.6899 GB, free: 6.344 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.053/7.223, allocations: 8.125 kB / 0.6899 GB, free: 6.34 MB / 494.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)