Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_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.001296/0.001296, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00141/0.00141, allocations: 191.9 kB / 16.13 MB, free: 6.715 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.312/1.312, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002009/0.002009, allocations: 283 kB / 290.2 MB, free: 2.227 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.933/0.933, allocations: 169.2 MB / 0.4977 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001602/0.001602, allocations: 93.78 kB / 0.5946 GB, free: 28.36 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.1396, allocations: 86.98 MB / 0.6796 GB, free: 1.055 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002103/0.1418, allocations: 1.337 MB / 0.6809 GB, free: 15.71 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008843/0.1427, allocations: 0.6302 MB / 0.6815 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.337e-05/0.1427, allocations: 0.7812 kB / 0.6815 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.697e-05/0.1427, allocations: 0 / 0.6815 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.16e-05/0.1428, allocations: 9.656 kB / 0.6815 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003941/0.1432, allocations: 127.6 kB / 0.6816 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.302e-05/0.1432, allocations: 24.8 kB / 0.6816 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.119e-05/0.1432, allocations: 4 kB / 0.6816 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.865e-05/0.1433, allocations: 11.94 kB / 0.6816 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.293e-05/0.1433, allocations: 16.53 kB / 0.6817 GB, free: 14.9 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.201e-05/0.1433, allocations: 4.531 kB / 0.6817 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004206/0.1438, allocations: 339.3 kB / 0.682 GB, free: 14.56 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.323e-05/0.1438, allocations: 12.98 kB / 0.682 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.328e-05/0.1438, allocations: 15.92 kB / 0.682 GB, free: 14.54 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000218/0.144, allocations: 156.9 kB / 0.6822 GB, free: 14.38 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.144, allocations: 0 / 0.6822 GB, free: 14.38 MB / 494.1 MB Notification: Performance of FrontEnd: time 6.41e-07/0.1441, allocations: 0 / 0.6822 GB, free: 14.38 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.805e-06/0.1441, allocations: 4 kB / 0.6822 GB, free: 14.38 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003442/0.1444, allocations: 361.2 kB / 0.6825 GB, free: 13.98 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.1444, allocations: 8.031 kB / 0.6825 GB, free: 13.97 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.097e-05/0.1445, allocations: 34.75 kB / 0.6826 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.642e-05/0.1445, allocations: 8.844 kB / 0.6826 GB, free: 13.92 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.291e-05/0.1446, allocations: 168.3 kB / 0.6827 GB, free: 13.71 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.094e-05/0.1446, allocations: 4.375 kB / 0.6827 GB, free: 13.71 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.875e-05/0.1447, allocations: 8.312 kB / 0.6827 GB, free: 13.7 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001088/0.1448, allocations: 58.2 kB / 0.6828 GB, free: 13.64 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.1448, allocations: 7.938 kB / 0.6828 GB, free: 13.63 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.15e-05/0.1448, allocations: 8 kB / 0.6828 GB, free: 13.62 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.1448, allocations: 3.938 kB / 0.6828 GB, free: 13.62 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.676e-05/0.1449, allocations: 19.98 kB / 0.6828 GB, free: 13.6 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001415/0.145, allocations: 157.7 kB / 0.683 GB, free: 13.4 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.236e-05/0.1451, allocations: 58.5 kB / 0.683 GB, free: 13.33 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.932e-05/0.1452, allocations: 28.84 kB / 0.6831 GB, free: 13.3 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.706e-05/0.1452, allocations: 4 kB / 0.6831 GB, free: 13.3 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.237e-05/0.1452, allocations: 38.56 kB / 0.6831 GB, free: 13.25 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 9.72e-07/0.1452, allocations: 0 / 0.6831 GB, free: 13.25 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.001006/0.1462, allocations: 0.5877 MB / 0.6837 GB, free: 12.57 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.062e-05/0.1463, allocations: 59.41 kB / 0.6837 GB, free: 12.5 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.744e-05/0.1463, allocations: 93.86 kB / 0.6838 GB, free: 12.4 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.329e-05/0.1463, allocations: 25.7 kB / 0.6838 GB, free: 12.37 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.886e-05/0.1464, allocations: 88.12 kB / 0.6839 GB, free: 12.28 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.412e-05/0.1464, allocations: 31.47 kB / 0.684 GB, free: 12.25 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.061e-05/0.1465, allocations: 29.7 kB / 0.684 GB, free: 12.21 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.259e-05/0.1466, allocations: 314.8 kB / 0.6843 GB, free: 11.89 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.012e-05/0.1466, allocations: 28.11 kB / 0.6843 GB, free: 11.87 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.61e-05/0.1466, allocations: 25.55 kB / 0.6843 GB, free: 11.84 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.56e-05/0.1467, allocations: 54.61 kB / 0.6844 GB, free: 11.79 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.71e-07/0.1467, allocations: 0 / 0.6844 GB, free: 11.79 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001394/0.1469, allocations: 105.6 kB / 0.6845 GB, free: 11.68 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.032e-05/0.1469, allocations: 4 kB / 0.6845 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.436e-06/0.1469, allocations: 0 / 0.6845 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.435e-06/0.1469, allocations: 0 / 0.6845 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.645e-05/0.147, allocations: 23.94 kB / 0.6845 GB, free: 11.65 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.147, allocations: 3.984 kB / 0.6845 GB, free: 11.65 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.3e-05/0.1471, allocations: 4 kB / 0.6845 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.784e-06/0.1471, allocations: 4 kB / 0.6845 GB, free: 11.64 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 (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.049e-05/0.1472, allocations: 115.2 kB / 0.6846 GB, free: 11.52 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.713e-05/0.1472, allocations: 11.84 kB / 0.6847 GB, free: 11.51 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000184/0.1474, allocations: 109.5 kB / 0.6848 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1474, allocations: 0 / 0.6848 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1474, allocations: 4 kB / 0.6848 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.1474, allocations: 3.984 kB / 0.6848 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003458/0.1477, allocations: 358.5 kB / 0.6851 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1478, allocations: 0 / 0.6851 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001016/0.1479, allocations: 23.94 kB / 0.6851 GB, free: 10.96 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.1479, allocations: 0 / 0.6851 GB, free: 10.96 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.318e-06/0.1479, allocations: 4 kB / 0.6851 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.1479, allocations: 0 / 0.6851 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.1479, allocations: 3.984 kB / 0.6851 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002141/0.1481, allocations: 219.6 kB / 0.6853 GB, free: 10.72 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.855e-05/0.1482, allocations: 85.12 kB / 0.6854 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.263e-05/0.1482, allocations: 0 / 0.6854 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.723e-05/0.1483, allocations: 8 kB / 0.6854 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.546e-05/0.1483, allocations: 11.92 kB / 0.6854 GB, free: 10.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-06/0.1483, allocations: 0 / 0.6854 GB, free: 10.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.766e-05/0.1483, allocations: 79.28 kB / 0.6855 GB, free: 10.52 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1483, allocations: 0 / 0.6855 GB, free: 10.52 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002446/0.1486, allocations: 39.92 kB / 0.6856 GB, free: 10.48 MB / 494.1 MB 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.0005014/0.1491, allocations: 0.7867 MB / 0.6863 GB, free: 9.668 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001265/0.1492, allocations: 66.73 kB / 0.6864 GB, free: 9.605 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.1492, allocations: 0 / 0.6864 GB, free: 9.605 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.557e-05/0.1493, allocations: 31.98 kB / 0.6864 GB, free: 9.574 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001999/0.1495, allocations: 8.938 kB / 0.6864 GB, free: 9.566 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.1508, allocations: 1.51 MB / 0.6879 GB, free: 7.977 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002257/0.151, allocations: 0.6887 MB / 0.6886 GB, free: 7.262 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.231e-05/0.1511, allocations: 15.94 kB / 0.6886 GB, free: 7.246 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.438e-05/0.1511, allocations: 19.42 kB / 0.6886 GB, free: 7.227 MB / 494.1 MB Notification: Performance of SimCode: time 3e-07/0.1511, allocations: 0 / 0.6886 GB, free: 7.227 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01045/0.1616, allocations: 1.92 MB / 0.6905 GB, free: 5.492 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002138/0.1618, allocations: 254.7 kB / 0.6907 GB, free: 5.238 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.542/1.704, allocations: 3.094 kB / 0.6907 GB, free: 5.238 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)