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.001191/0.001191, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.00123/0.00123, allocations: 194.5 kB / 16.26 MB, free: 6.145 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.228/1.228, allocations: 222.9 MB / 239.9 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.001941/0.001941, allocations: 286.8 kB / 290.3 MB, free: 2.016 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8777/0.8777, allocations: 169.2 MB / 0.4978 GB, free: 14.05 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00158/0.00158, allocations: 97.67 kB / 0.5948 GB, free: 27.91 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1299, allocations: 86.97 MB / 0.6797 GB, free: 0.9023 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002388/0.1323, allocations: 1.52 MB / 0.6812 GB, free: 15.38 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009256/0.1332, allocations: 0.6384 MB / 0.6818 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.646e-05/0.1333, allocations: 0 / 0.6818 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.129e-05/0.1333, allocations: 4 kB / 0.6819 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.499e-05/0.1334, allocations: 3.938 kB / 0.6819 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005038/0.1339, allocations: 147.5 kB / 0.682 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.698e-05/0.134, allocations: 47.86 kB / 0.682 GB, free: 14.54 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.414e-05/0.134, allocations: 4.281 kB / 0.682 GB, free: 14.54 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.541e-05/0.134, allocations: 23.91 kB / 0.6821 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.21e-05/0.1341, allocations: 31.84 kB / 0.6821 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.258e-05/0.1341, allocations: 8 kB / 0.6821 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004102/0.1345, allocations: 351.3 kB / 0.6824 GB, free: 14.13 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.42e-05/0.1345, allocations: 4 kB / 0.6824 GB, free: 14.13 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.975e-05/0.1346, allocations: 27.86 kB / 0.6825 GB, free: 14.1 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002347/0.1348, allocations: 183.5 kB / 0.6826 GB, free: 13.92 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1348, allocations: 0 / 0.6826 GB, free: 13.92 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1348, allocations: 0 / 0.6826 GB, free: 13.92 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.878e-06/0.1348, allocations: 0 / 0.6826 GB, free: 13.92 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.0005031/0.1354, allocations: 395.3 kB / 0.683 GB, free: 13.48 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.1354, allocations: 12.03 kB / 0.683 GB, free: 13.47 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.201e-05/0.1354, allocations: 38.73 kB / 0.6831 GB, free: 13.43 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.028e-05/0.1355, allocations: 8.844 kB / 0.6831 GB, free: 13.42 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.156e-05/0.1356, allocations: 164.3 kB / 0.6832 GB, free: 13.22 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.217e-05/0.1356, allocations: 8.375 kB / 0.6832 GB, free: 13.21 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.016e-05/0.1356, allocations: 4.375 kB / 0.6832 GB, free: 13.21 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002198/0.1358, allocations: 90.77 kB / 0.6833 GB, free: 13.11 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.1359, allocations: 3.938 kB / 0.6833 GB, free: 13.11 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.173e-05/0.1359, allocations: 8 kB / 0.6833 GB, free: 13.1 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.778e-06/0.1359, allocations: 0 / 0.6833 GB, free: 13.1 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000218/0.1361, allocations: 43.97 kB / 0.6834 GB, free: 13.06 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004674/0.1366, allocations: 324.7 kB / 0.6837 GB, free: 12.69 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002721/0.1369, allocations: 82.47 kB / 0.6838 GB, free: 12.6 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/0.137, allocations: 32.78 kB / 0.6838 GB, free: 12.57 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.827e-05/0.137, allocations: 4 kB / 0.6838 GB, free: 12.56 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.99e-05/0.137, allocations: 30.56 kB / 0.6838 GB, free: 12.52 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.072e-06/0.137, allocations: 0 / 0.6838 GB, free: 12.52 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.001511/0.1386, allocations: 0.6463 MB / 0.6845 GB, free: 11.79 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.922e-05/0.1386, allocations: 55.41 kB / 0.6845 GB, free: 11.72 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.169e-05/0.1387, allocations: 109.8 kB / 0.6846 GB, free: 11.6 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.758e-05/0.1387, allocations: 37.64 kB / 0.6847 GB, free: 11.56 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.477e-05/0.1387, allocations: 84.05 kB / 0.6847 GB, free: 11.47 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.434e-05/0.1388, allocations: 47.33 kB / 0.6848 GB, free: 11.43 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.542e-05/0.1388, allocations: 25.7 kB / 0.6848 GB, free: 11.39 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.469e-05/0.1389, allocations: 318.8 kB / 0.6851 GB, free: 11.07 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00013/0.1391, allocations: 35.97 kB / 0.6852 GB, free: 11.04 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001135/0.1392, allocations: 30.48 kB / 0.6852 GB, free: 11.01 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002272/0.1394, allocations: 72.83 kB / 0.6853 GB, free: 10.94 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.22e-07/0.1394, allocations: 0 / 0.6853 GB, free: 10.94 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002927/0.1397, allocations: 120.9 kB / 0.6854 GB, free: 10.82 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/0.1397, allocations: 4 kB / 0.6854 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.399e-06/0.1397, allocations: 4 kB / 0.6854 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.568e-06/0.1398, allocations: 4 kB / 0.6854 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.1399, allocations: 31.91 kB / 0.6854 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.1399, allocations: 3.938 kB / 0.6854 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.125e-05/0.14, allocations: 8 kB / 0.6854 GB, free: 10.76 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.03e-05/0.14, allocations: 4 kB / 0.6854 GB, free: 10.76 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.206e-05/0.1401, allocations: 115.2 kB / 0.6855 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.962e-05/0.1401, allocations: 3.984 kB / 0.6855 GB, free: 10.63 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000349/0.1405, allocations: 133.5 kB / 0.6857 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.1405, allocations: 0 / 0.6857 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.1405, allocations: 7.938 kB / 0.6857 GB, free: 10.49 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.1405, allocations: 0 / 0.6857 GB, free: 10.49 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005278/0.141, allocations: 386.4 kB / 0.686 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.141, allocations: 0 / 0.686 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001405/0.1412, allocations: 31.92 kB / 0.6861 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.1412, allocations: 7.938 kB / 0.6861 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.1412, allocations: 4 kB / 0.6861 GB, free: 10.01 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1412, allocations: 3.938 kB / 0.6861 GB, free: 10.01 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1412, allocations: 3.984 kB / 0.6861 GB, free: 10 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004514/0.1417, allocations: 243.5 kB / 0.6863 GB, free: 9.75 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.087e-05/0.1417, allocations: 85.05 kB / 0.6864 GB, free: 9.648 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.693e-05/0.1418, allocations: 8 kB / 0.6864 GB, free: 9.641 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001166/0.1419, allocations: 4 kB / 0.6864 GB, free: 9.637 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.857e-05/0.1419, allocations: 11.98 kB / 0.6864 GB, free: 9.625 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.638e-06/0.1419, allocations: 4 kB / 0.6864 GB, free: 9.621 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.05e-05/0.142, allocations: 83.2 kB / 0.6865 GB, free: 9.539 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.142, allocations: 0 / 0.6865 GB, free: 9.539 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002662/0.1422, allocations: 36 kB / 0.6865 GB, free: 9.504 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.0007507/0.143, allocations: 0.8297 MB / 0.6874 GB, free: 8.648 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002952/0.1433, allocations: 87.83 kB / 0.6874 GB, free: 8.562 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1433, allocations: 0 / 0.6874 GB, free: 8.562 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001328/0.1434, allocations: 51.97 kB / 0.6875 GB, free: 8.512 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002718/0.1437, allocations: 8 kB / 0.6875 GB, free: 8.504 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001799/0.1455, allocations: 1.609 MB / 0.6891 GB, free: 6.812 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002018/0.1457, allocations: 0.6924 MB / 0.6897 GB, free: 6.094 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.447e-05/0.1458, allocations: 20.59 kB / 0.6898 GB, free: 6.074 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.308e-05/0.1459, allocations: 21.31 kB / 0.6898 GB, free: 6.055 MB / 494.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1459, allocations: 0 / 0.6898 GB, free: 6.055 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0203/0.1662, allocations: 2.222 MB / 0.692 GB, free: 4.059 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002441/0.1664, allocations: 261.9 kB / 0.6922 GB, free: 3.715 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.588/1.755, allocations: 0 / 0.6922 GB, free: 3.715 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)