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.001541/0.001541, 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.001882/0.001882, allocations: 194.5 kB / 16.14 MB, free: 6.66 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.224/1.224, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002029/0.002029, allocations: 283 kB / 290.2 MB, free: 2.203 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8879/0.8879, allocations: 169.2 MB / 0.4977 GB, free: 14.17 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 96.78 kB / 0.5946 GB, free: 28.28 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1375, allocations: 86.98 MB / 0.6795 GB, free: 1.082 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002354/0.1398, allocations: 1.528 MB / 0.681 GB, free: 15.55 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009725/0.1408, allocations: 0.6471 MB / 0.6817 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.1e-05/0.1409, allocations: 4 kB / 0.6817 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.946e-05/0.1409, allocations: 7.922 kB / 0.6817 GB, free: 14.9 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.887e-05/0.141, allocations: 7.922 kB / 0.6817 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004108/0.1414, allocations: 134.2 kB / 0.6818 GB, free: 14.76 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.803e-05/0.1414, allocations: 47.89 kB / 0.6819 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.093e-05/0.1415, allocations: 4.281 kB / 0.6819 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.465e-05/0.1415, allocations: 23.92 kB / 0.6819 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.09e-05/0.1416, allocations: 27.84 kB / 0.6819 GB, free: 14.66 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.355e-05/0.1416, allocations: 4 kB / 0.6819 GB, free: 14.66 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00044/0.142, allocations: 347.3 kB / 0.6822 GB, free: 14.32 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.752e-05/0.1421, allocations: 15.97 kB / 0.6823 GB, free: 14.3 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.245e-05/0.1421, allocations: 27.86 kB / 0.6823 GB, free: 14.27 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002483/0.1424, allocations: 171.5 kB / 0.6825 GB, free: 14.11 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.1424, allocations: 0 / 0.6825 GB, free: 14.11 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1424, allocations: 0 / 0.6825 GB, free: 14.11 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.935e-06/0.1424, allocations: 0 / 0.6825 GB, free: 14.11 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.000472/0.1429, allocations: 399.3 kB / 0.6828 GB, free: 13.66 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.1429, allocations: 12.03 kB / 0.6828 GB, free: 13.65 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.944e-05/0.1429, allocations: 34.75 kB / 0.6829 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.662e-05/0.143, allocations: 8.844 kB / 0.6829 GB, free: 13.6 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.989e-05/0.1431, allocations: 184.2 kB / 0.6831 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/0.1431, allocations: 4.375 kB / 0.6831 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.745e-05/0.1431, allocations: 8.375 kB / 0.6831 GB, free: 13.37 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002125/0.1433, allocations: 74.22 kB / 0.6831 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.1434, allocations: 3.938 kB / 0.6832 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.798e-06/0.1434, allocations: 0 / 0.6832 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.1434, allocations: 4 kB / 0.6832 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002104/0.1436, allocations: 51.95 kB / 0.6832 GB, free: 13.23 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004737/0.1441, allocations: 328.6 kB / 0.6835 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002464/0.1443, allocations: 78.53 kB / 0.6836 GB, free: 12.78 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001046/0.1444, allocations: 32.78 kB / 0.6836 GB, free: 12.74 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.692e-05/0.1445, allocations: 0 / 0.6836 GB, free: 12.74 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.148e-05/0.1445, allocations: 42.48 kB / 0.6837 GB, free: 12.69 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 8.52e-07/0.1445, allocations: 0 / 0.6837 GB, free: 12.69 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.001486/0.146, allocations: 0.6421 MB / 0.6843 GB, free: 11.96 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.65e-05/0.146, allocations: 51.41 kB / 0.6843 GB, free: 11.89 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.972e-05/0.1461, allocations: 105.8 kB / 0.6844 GB, free: 11.78 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.398e-05/0.1461, allocations: 29.7 kB / 0.6845 GB, free: 11.75 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.824e-05/0.1462, allocations: 92.03 kB / 0.6846 GB, free: 11.65 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.867e-05/0.1462, allocations: 39.34 kB / 0.6846 GB, free: 11.61 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.332e-05/0.1463, allocations: 33.7 kB / 0.6846 GB, free: 11.57 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.1464, allocations: 318.8 kB / 0.6849 GB, free: 11.25 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001233/0.1465, allocations: 27.98 kB / 0.685 GB, free: 11.23 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001176/0.1466, allocations: 36.09 kB / 0.685 GB, free: 11.19 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002251/0.1469, allocations: 83.77 kB / 0.6851 GB, free: 11.11 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.82e-07/0.1469, allocations: 0 / 0.6851 GB, free: 11.11 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002932/0.1472, allocations: 109.6 kB / 0.6852 GB, free: 11 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/0.1472, allocations: 8 kB / 0.6852 GB, free: 10.99 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.457e-06/0.1472, allocations: 0 / 0.6852 GB, free: 10.99 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.847e-06/0.1472, allocations: 0 / 0.6852 GB, free: 10.99 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001329/0.1474, allocations: 27.98 kB / 0.6852 GB, free: 10.96 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.1474, allocations: 7.938 kB / 0.6852 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.064e-05/0.1474, allocations: 11.98 kB / 0.6852 GB, free: 10.94 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.197e-06/0.1474, allocations: 4 kB / 0.6852 GB, free: 10.94 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.925e-05/0.1475, allocations: 123.1 kB / 0.6854 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.019e-05/0.1476, allocations: 4.188 kB / 0.6854 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003362/0.1479, allocations: 133.6 kB / 0.6855 GB, free: 10.67 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.1479, allocations: 7.984 kB / 0.6855 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.1479, allocations: 7.938 kB / 0.6855 GB, free: 10.65 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.564e-06/0.1479, allocations: 0 / 0.6855 GB, free: 10.65 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000506/0.1485, allocations: 378.6 kB / 0.6859 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.1485, allocations: 0 / 0.6859 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000138/0.1486, allocations: 27.97 kB / 0.6859 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.1486, allocations: 7.938 kB / 0.6859 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-06/0.1486, allocations: 0 / 0.6859 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.1486, allocations: 4 kB / 0.6859 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1486, allocations: 0 / 0.6859 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004478/0.1491, allocations: 251.4 kB / 0.6861 GB, free: 9.926 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.895e-05/0.1492, allocations: 85.05 kB / 0.6862 GB, free: 9.824 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.849e-05/0.1492, allocations: 7.938 kB / 0.6862 GB, free: 9.816 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001144/0.1493, allocations: 7.984 kB / 0.6862 GB, free: 9.809 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.54e-05/0.1493, allocations: 8.062 kB / 0.6862 GB, free: 9.801 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/0.1493, allocations: 7.984 kB / 0.6862 GB, free: 9.793 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.199e-05/0.1494, allocations: 83.28 kB / 0.6863 GB, free: 9.711 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1494, allocations: 0 / 0.6863 GB, free: 9.711 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002498/0.1496, allocations: 36 kB / 0.6864 GB, free: 9.676 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.0007783/0.1504, allocations: 0.8176 MB / 0.6872 GB, free: 8.832 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002825/0.1507, allocations: 87.83 kB / 0.6872 GB, free: 8.746 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1507, allocations: 0 / 0.6872 GB, free: 8.746 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001355/0.1509, allocations: 43.97 kB / 0.6873 GB, free: 8.703 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002617/0.1511, allocations: 8 kB / 0.6873 GB, free: 8.695 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001812/0.1529, allocations: 1.632 MB / 0.6889 GB, free: 6.984 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002207/0.1532, allocations: 0.6926 MB / 0.6896 GB, free: 6.266 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.681e-05/0.1532, allocations: 12.61 kB / 0.6896 GB, free: 6.254 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.321e-05/0.1533, allocations: 23.42 kB / 0.6896 GB, free: 6.23 MB / 494.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1533, allocations: 4 kB / 0.6896 GB, free: 6.227 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01056/0.1639, allocations: 2.17 MB / 0.6917 GB, free: 4.258 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002436/0.1641, allocations: 269.7 kB / 0.692 GB, free: 3.918 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.539/1.703, allocations: 4 kB / 0.692 GB, free: 3.914 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)