Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_m_flow_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.001057/0.001057, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001018/0.001018, allocations: 191.3 kB / 16.25 MB, free: 6.629 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.256/1.256, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002079/0.002079, allocations: 290.7 kB / 290.3 MB, free: 2.148 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9184/0.9184, allocations: 169.2 MB / 0.4978 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001585/0.001585, allocations: 92.91 kB / 0.5948 GB, free: 28.24 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1277, allocations: 86.98 MB / 0.6797 GB, free: 0.9727 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002101/0.1298, allocations: 1.345 MB / 0.681 GB, free: 15.62 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008603/0.1307, allocations: 0.6116 MB / 0.6816 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.608e-05/0.1307, allocations: 0 / 0.6816 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.689e-05/0.1307, allocations: 4 kB / 0.6816 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.903e-05/0.1308, allocations: 0 / 0.6816 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004487/0.1312, allocations: 135.6 kB / 0.6818 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.341e-05/0.1313, allocations: 23.86 kB / 0.6818 GB, free: 14.85 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.34e-05/0.1313, allocations: 4 kB / 0.6818 GB, free: 14.85 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.015e-05/0.1313, allocations: 7.938 kB / 0.6818 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.185e-05/0.1314, allocations: 4 kB / 0.6818 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.151e-05/0.1314, allocations: 0 / 0.6818 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004477/0.1319, allocations: 351.3 kB / 0.6821 GB, free: 14.49 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.449e-05/0.1319, allocations: 7.938 kB / 0.6822 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.574e-05/0.1319, allocations: 4 kB / 0.6822 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002472/0.1322, allocations: 147.9 kB / 0.6823 GB, free: 14.34 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1322, allocations: 0 / 0.6823 GB, free: 14.34 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.025e-06/0.1322, allocations: 7.938 kB / 0.6823 GB, free: 14.33 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.1322, allocations: 3.938 kB / 0.6823 GB, free: 14.32 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.0004612/0.1327, allocations: 359.4 kB / 0.6827 GB, free: 13.92 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.1327, allocations: 12.03 kB / 0.6827 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.805e-05/0.1328, allocations: 34.75 kB / 0.6827 GB, free: 13.87 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.862e-05/0.1328, allocations: 8.844 kB / 0.6827 GB, free: 13.86 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001261/0.1329, allocations: 164.4 kB / 0.6829 GB, free: 13.66 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.1329, allocations: 384 / 0.6829 GB, free: 13.66 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.049e-05/0.133, allocations: 4.375 kB / 0.6829 GB, free: 13.66 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000116/0.1331, allocations: 42.25 kB / 0.6829 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.1331, allocations: 3.938 kB / 0.6829 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.026e-05/0.1331, allocations: 0 / 0.6829 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.1331, allocations: 4 kB / 0.6829 GB, free: 13.6 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.938e-05/0.1332, allocations: 11.94 kB / 0.6829 GB, free: 13.59 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001668/0.1334, allocations: 157.6 kB / 0.6831 GB, free: 13.39 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001742/0.1335, allocations: 42.61 kB / 0.6831 GB, free: 13.34 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.194e-05/0.1336, allocations: 20.94 kB / 0.6831 GB, free: 13.31 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.717e-05/0.1336, allocations: 4 kB / 0.6831 GB, free: 13.31 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.774e-05/0.1336, allocations: 34.56 kB / 0.6832 GB, free: 13.27 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.1336, allocations: 0 / 0.6832 GB, free: 13.27 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005417/0.1342, allocations: 306.5 kB / 0.6835 GB, free: 12.91 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.039e-05/0.1342, allocations: 55.41 kB / 0.6835 GB, free: 12.85 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.227e-05/0.1343, allocations: 109.8 kB / 0.6836 GB, free: 12.73 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.21e-05/0.1343, allocations: 25.7 kB / 0.6836 GB, free: 12.7 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.541e-05/0.1343, allocations: 84.08 kB / 0.6837 GB, free: 12.61 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.955e-05/0.1344, allocations: 23.66 kB / 0.6838 GB, free: 12.59 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.008e-05/0.1344, allocations: 21.7 kB / 0.6838 GB, free: 12.56 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.483e-05/0.1345, allocations: 310.8 kB / 0.6841 GB, free: 12.25 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.627e-05/0.1346, allocations: 15.98 kB / 0.6841 GB, free: 12.23 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.06e-05/0.1346, allocations: 11.98 kB / 0.6841 GB, free: 12.22 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.276e-05/0.1347, allocations: 32.86 kB / 0.6841 GB, free: 12.19 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.41e-07/0.1347, allocations: 0 / 0.6841 GB, free: 12.19 MB / 494.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.408e-05/0.1348, allocations: 77.47 kB / 0.6842 GB, free: 12.11 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.1348, allocations: 6.188 kB / 0.6842 GB, free: 12.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.1348, allocations: 0 / 0.6842 GB, free: 12.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.568e-06/0.1348, allocations: 4 kB / 0.6842 GB, free: 12.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.692e-05/0.1349, allocations: 8 kB / 0.6842 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.042e-06/0.1349, allocations: 7.984 kB / 0.6842 GB, free: 12.08 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.871e-05/0.1349, allocations: 4 kB / 0.6842 GB, free: 12.08 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.502e-06/0.1349, allocations: 4 kB / 0.6842 GB, free: 12.07 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.098e-05/0.135, allocations: 114.5 kB / 0.6843 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.219e-05/0.135, allocations: 7.938 kB / 0.6843 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000123/0.1351, allocations: 69.59 kB / 0.6844 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.1351, allocations: 3.984 kB / 0.6844 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.1351, allocations: 0 / 0.6844 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.1351, allocations: 0 / 0.6844 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002925/0.1354, allocations: 319.4 kB / 0.6847 GB, free: 11.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1355, allocations: 0 / 0.6847 GB, free: 11.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-05/0.1355, allocations: 12.03 kB / 0.6847 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.1355, allocations: 4 kB / 0.6847 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.131e-06/0.1355, allocations: 0 / 0.6847 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.1356, allocations: 3.984 kB / 0.6847 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1356, allocations: 0 / 0.6847 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001625/0.1357, allocations: 184.3 kB / 0.6849 GB, free: 11.28 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.152e-05/0.1358, allocations: 81.09 kB / 0.685 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.305e-05/0.1358, allocations: 12 kB / 0.685 GB, free: 11.17 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.87e-05/0.1359, allocations: 3.938 kB / 0.685 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.381e-05/0.1359, allocations: 4 kB / 0.685 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.399e-06/0.1359, allocations: 4 kB / 0.685 GB, free: 11.16 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.76e-05/0.1359, allocations: 83.27 kB / 0.6851 GB, free: 11.07 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1359, allocations: 0 / 0.6851 GB, free: 11.07 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002281/0.1362, allocations: 16 kB / 0.6851 GB, free: 11.06 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (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.0004413/0.1366, allocations: 0.7376 MB / 0.6858 GB, free: 10.29 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 9.295e-05/0.1367, allocations: 35.92 kB / 0.6859 GB, free: 10.26 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1367, allocations: 4 kB / 0.6859 GB, free: 10.25 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.713e-05/0.1368, allocations: 15.94 kB / 0.6859 GB, free: 10.24 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002076/0.137, allocations: 4 kB / 0.6859 GB, free: 10.23 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001049/0.138, allocations: 1.327 MB / 0.6872 GB, free: 8.824 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002132/0.1383, allocations: 0.6885 MB / 0.6879 GB, free: 8.109 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.843e-05/0.1383, allocations: 4 kB / 0.6879 GB, free: 8.105 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.725e-05/0.1383, allocations: 15.53 kB / 0.6879 GB, free: 8.09 MB / 494.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1383, allocations: 3.938 kB / 0.6879 GB, free: 8.086 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01198/0.1503, allocations: 1.534 MB / 0.6894 GB, free: 6.77 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002652/0.1506, allocations: 261 kB / 0.6896 GB, free: 6.449 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.572/1.723, allocations: 0 / 0.6896 GB, free: 6.449 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)