Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_m_flow_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.001224/0.001225, allocations: 108 kB / 15.61 MB, free: 152 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.001221/0.001221, allocations: 195.7 kB / 16.53 MB, free: 6.664 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.235/1.235, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002062/0.002062, allocations: 290.5 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9096/0.9096, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001774/0.001774, allocations: 101.8 kB / 0.5954 GB, free: 27.94 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.123, allocations: 86.98 MB / 0.6803 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.0024/0.1254, allocations: 1.457 MB / 0.6817 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009321/0.1264, allocations: 0.6329 MB / 0.6823 GB, free: 14.51 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.379e-05/0.1264, allocations: 0 / 0.6823 GB, free: 14.51 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.853e-05/0.1265, allocations: 3.938 kB / 0.6823 GB, free: 14.51 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.246e-05/0.1265, allocations: 11.92 kB / 0.6824 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000537/0.1271, allocations: 162.1 kB / 0.6825 GB, free: 14.34 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.254e-05/0.1272, allocations: 47.91 kB / 0.6826 GB, free: 14.29 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.045e-05/0.1272, allocations: 12.27 kB / 0.6826 GB, free: 14.28 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.895e-05/0.1273, allocations: 19.94 kB / 0.6826 GB, free: 14.26 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.235e-05/0.1273, allocations: 31.78 kB / 0.6826 GB, free: 14.23 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.25e-05/0.1273, allocations: 4 kB / 0.6826 GB, free: 14.23 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004696/0.1278, allocations: 347.4 kB / 0.6829 GB, free: 13.89 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.622e-05/0.1278, allocations: 7.984 kB / 0.683 GB, free: 13.88 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.118e-05/0.1279, allocations: 27.86 kB / 0.683 GB, free: 13.85 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002614/0.1281, allocations: 179.5 kB / 0.6832 GB, free: 13.68 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1282, allocations: 0 / 0.6832 GB, free: 13.68 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1282, allocations: 0 / 0.6832 GB, free: 13.68 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.1282, allocations: 4 kB / 0.6832 GB, free: 13.67 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.00052/0.1287, allocations: 395.3 kB / 0.6835 GB, free: 13.23 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.1287, allocations: 16.02 kB / 0.6835 GB, free: 13.22 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.319e-05/0.1288, allocations: 34.75 kB / 0.6836 GB, free: 13.18 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.181e-05/0.1288, allocations: 8.844 kB / 0.6836 GB, free: 13.17 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.93e-05/0.1289, allocations: 176.2 kB / 0.6838 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.235e-05/0.1289, allocations: 4.375 kB / 0.6838 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.164e-05/0.129, allocations: 8.375 kB / 0.6838 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002182/0.1292, allocations: 82.2 kB / 0.6838 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.1292, allocations: 3.938 kB / 0.6839 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.024e-05/0.1292, allocations: 0 / 0.6839 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.1292, allocations: 4 kB / 0.6839 GB, free: 12.85 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002342/0.1295, allocations: 59.89 kB / 0.6839 GB, free: 12.79 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000475/0.13, allocations: 316.7 kB / 0.6842 GB, free: 12.43 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002695/0.1302, allocations: 78.47 kB / 0.6843 GB, free: 12.35 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001139/0.1304, allocations: 32.84 kB / 0.6843 GB, free: 12.31 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.715e-05/0.1304, allocations: 8.078 kB / 0.6843 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.241e-05/0.1304, allocations: 34.56 kB / 0.6844 GB, free: 12.26 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.122e-06/0.1304, allocations: 0 / 0.6844 GB, free: 12.26 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.001518/0.132, allocations: 0.6426 MB / 0.685 GB, free: 11.53 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.772e-05/0.132, allocations: 51.41 kB / 0.685 GB, free: 11.46 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.256e-05/0.1321, allocations: 113.8 kB / 0.6851 GB, free: 11.34 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.1321, allocations: 25.7 kB / 0.6852 GB, free: 11.31 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.681e-05/0.1321, allocations: 91.98 kB / 0.6853 GB, free: 11.22 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.349e-05/0.1322, allocations: 43.39 kB / 0.6853 GB, free: 11.18 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.346e-05/0.1322, allocations: 29.7 kB / 0.6853 GB, free: 11.14 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.192e-05/0.1323, allocations: 318.8 kB / 0.6856 GB, free: 10.82 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001308/0.1324, allocations: 36.09 kB / 0.6857 GB, free: 10.79 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001197/0.1326, allocations: 27.98 kB / 0.6857 GB, free: 10.76 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002469/0.1328, allocations: 79.89 kB / 0.6858 GB, free: 10.68 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.82e-07/0.1328, allocations: 0 / 0.6858 GB, free: 10.68 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003105/0.1331, allocations: 121.6 kB / 0.6859 GB, free: 10.55 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/0.1332, allocations: 4 kB / 0.6859 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.1332, allocations: 0 / 0.6859 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.1332, allocations: 3.984 kB / 0.6859 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001406/0.1333, allocations: 23.98 kB / 0.6859 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/0.1333, allocations: 7.875 kB / 0.6859 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.223e-05/0.1334, allocations: 4 kB / 0.6859 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.131e-05/0.1334, allocations: 8 kB / 0.6859 GB, free: 10.5 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.023e-05/0.1335, allocations: 123.1 kB / 0.6861 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.102e-05/0.1335, allocations: 4.094 kB / 0.6861 GB, free: 10.37 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003548/0.1339, allocations: 125.5 kB / 0.6862 GB, free: 10.24 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-06/0.1339, allocations: 0 / 0.6862 GB, free: 10.24 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.1339, allocations: 7.938 kB / 0.6862 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.1339, allocations: 0 / 0.6862 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005155/0.1345, allocations: 386.4 kB / 0.6866 GB, free: 9.801 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.582e-06/0.1345, allocations: 0 / 0.6866 GB, free: 9.801 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001401/0.1346, allocations: 23.98 kB / 0.6866 GB, free: 9.777 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.93e-06/0.1346, allocations: 7.938 kB / 0.6866 GB, free: 9.77 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.1346, allocations: 4 kB / 0.6866 GB, free: 9.766 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.1347, allocations: 7.922 kB / 0.6866 GB, free: 9.758 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1347, allocations: 3.938 kB / 0.6866 GB, free: 9.754 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004665/0.1351, allocations: 239.8 kB / 0.6868 GB, free: 9.504 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.583e-05/0.1352, allocations: 89.05 kB / 0.6869 GB, free: 9.398 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.729e-05/0.1352, allocations: 3.938 kB / 0.6869 GB, free: 9.395 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001163/0.1353, allocations: 8 kB / 0.6869 GB, free: 9.387 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.739e-05/0.1353, allocations: 7.984 kB / 0.6869 GB, free: 9.379 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.175e-05/0.1354, allocations: 8 kB / 0.6869 GB, free: 9.371 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.245e-05/0.1354, allocations: 83.27 kB / 0.687 GB, free: 9.289 MB / 494.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1354, allocations: 0 / 0.687 GB, free: 9.289 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002675/0.1357, allocations: 40.06 kB / 0.6871 GB, free: 9.25 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_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 (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.0007644/0.1364, allocations: 0.8215 MB / 0.6879 GB, free: 8.402 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003222/0.1368, allocations: 95.89 kB / 0.688 GB, free: 8.309 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1368, allocations: 0 / 0.688 GB, free: 8.309 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001464/0.1369, allocations: 47.91 kB / 0.688 GB, free: 8.262 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002719/0.1372, allocations: 13.56 kB / 0.688 GB, free: 8.25 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001847/0.1391, allocations: 1.597 MB / 0.6896 GB, free: 6.574 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001956/0.1393, allocations: 0.6924 MB / 0.6902 GB, free: 5.855 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.988e-05/0.1394, allocations: 12.66 kB / 0.6903 GB, free: 5.844 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.333e-05/0.1394, allocations: 23.44 kB / 0.6903 GB, free: 5.82 MB / 494.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1394, allocations: 0 / 0.6903 GB, free: 5.82 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02599/0.1654, allocations: 2.314 MB / 0.6925 GB, free: 3.691 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.285/7.45, allocations: 11.19 kB / 0.6926 GB, free: 3.684 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)