Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-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(BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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.001237/0.001237, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.00162/0.00162, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.017/1.017, allocations: 143.3 MB / 434.3 MB, free: 13.77 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003296/0.00033, allocations: 11.98 kB / 0.5159 GB, free: 11.25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1753/0.1756, allocations: 83.42 MB / 0.5974 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.001796/0.1775, allocations: 1.166 MB / 0.5985 GB, free: 6.59 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0006048/0.1781, allocations: 335.2 kB / 0.5988 GB, free: 6.262 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.041e-05/0.1781, allocations: 0 / 0.5988 GB, free: 6.262 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.911e-05/0.1782, allocations: 7.922 kB / 0.5988 GB, free: 6.254 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.677e-05/0.1782, allocations: 15.94 kB / 0.5988 GB, free: 6.238 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003465/0.1786, allocations: 71.77 kB / 0.5989 GB, free: 6.168 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.598e-05/0.1787, allocations: 35.89 kB / 0.599 GB, free: 6.133 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.22e-05/0.1787, allocations: 4 kB / 0.599 GB, free: 6.129 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.349e-05/0.1788, allocations: 19.98 kB / 0.599 GB, free: 6.109 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.167e-05/0.1788, allocations: 27.84 kB / 0.599 GB, free: 6.082 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.128e-05/0.1788, allocations: 0 / 0.599 GB, free: 6.082 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002866/0.1791, allocations: 183.8 kB / 0.5992 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.587e-05/0.1792, allocations: 11.92 kB / 0.5992 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.905e-05/0.1792, allocations: 37.7 kB / 0.5992 GB, free: 5.848 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001747/0.1794, allocations: 68.12 kB / 0.5993 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.1794, allocations: 0 / 0.5993 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.004e-06/0.1794, allocations: 3.938 kB / 0.5993 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.188e-06/0.1794, allocations: 0 / 0.5993 GB, free: 5.777 MB / 0.4981 GB 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.0006655/0.1801, allocations: 379.2 kB / 0.5997 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.1802, allocations: 8.031 kB / 0.5997 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.738e-05/0.1802, allocations: 46.48 kB / 0.5997 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.495e-05/0.1803, allocations: 11.86 kB / 0.5997 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001237/0.1804, allocations: 159.1 kB / 0.5999 GB, free: 5.09 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.792e-05/0.1804, allocations: 8 kB / 0.5999 GB, free: 5.082 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.314e-05/0.1804, allocations: 4 kB / 0.5999 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002414/0.1807, allocations: 81.64 kB / 0.6 GB, free: 4.992 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.1807, allocations: 4 kB / 0.6 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.748e-05/0.1807, allocations: 7.984 kB / 0.6 GB, free: 4.98 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.832e-06/0.1808, allocations: 4 kB / 0.6 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002396/0.181, allocations: 55.91 kB / 0.6 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005632/0.1816, allocations: 332.6 kB / 0.6003 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002744/0.1819, allocations: 94.47 kB / 0.6004 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.17e-05/0.1819, allocations: 0 / 0.6004 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.1819, allocations: 38.52 kB / 0.6005 GB, free: 4.398 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 9.32e-07/0.1819, allocations: 0 / 0.6005 GB, free: 4.398 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.001587/0.1835, allocations: 0.6693 MB / 0.6011 GB, free: 3.637 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.1836, allocations: 51.41 kB / 0.6012 GB, free: 3.574 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.96e-05/0.1836, allocations: 101.9 kB / 0.6013 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.466e-05/0.1837, allocations: 25.7 kB / 0.6013 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.848e-05/0.1837, allocations: 92.03 kB / 0.6014 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.071e-05/0.1837, allocations: 39.45 kB / 0.6014 GB, free: 3.301 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.536e-06/0.1838, allocations: 4 kB / 0.6014 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.299e-05/0.1839, allocations: 314.9 kB / 0.6017 GB, free: 2.98 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000127/0.184, allocations: 43.91 kB / 0.6018 GB, free: 2.938 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001121/0.1841, allocations: 31.98 kB / 0.6018 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001258/0.1842, allocations: 48.05 kB / 0.6018 GB, free: 2.859 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.91e-07/0.1843, allocations: 0 / 0.6018 GB, free: 2.859 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002978/0.1846, allocations: 125.5 kB / 0.602 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.1846, allocations: 4 kB / 0.602 GB, free: 2.727 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.1846, allocations: 0 / 0.602 GB, free: 2.727 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.1846, allocations: 0 / 0.602 GB, free: 2.727 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001545/0.1848, allocations: 35.97 kB / 0.602 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.1848, allocations: 3.938 kB / 0.602 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.444e-05/0.1848, allocations: 8 kB / 0.602 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.038e-05/0.1849, allocations: 4 kB / 0.602 GB, free: 2.676 MB / 0.4981 GB 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.076e-05/0.185, allocations: 120.2 kB / 0.6021 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.88e-05/0.185, allocations: 11.94 kB / 0.6021 GB, free: 2.539 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003661/0.1854, allocations: 137.6 kB / 0.6023 GB, free: 2.395 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.1854, allocations: 0 / 0.6023 GB, free: 2.395 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.1854, allocations: 0 / 0.6023 GB, free: 2.395 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.1854, allocations: 4 kB / 0.6023 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005126/0.1859, allocations: 402.4 kB / 0.6027 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.1859, allocations: 0 / 0.6027 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001428/0.1861, allocations: 31.98 kB / 0.6027 GB, free: 1.91 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.1861, allocations: 0 / 0.6027 GB, free: 1.91 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.757e-06/0.1861, allocations: 0 / 0.6027 GB, free: 1.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.1861, allocations: 0 / 0.6027 GB, free: 1.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.1861, allocations: 7.984 kB / 0.6027 GB, free: 1.902 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004549/0.1866, allocations: 259.6 kB / 0.6029 GB, free: 1.633 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.41e-05/0.1866, allocations: 92.98 kB / 0.603 GB, free: 1.523 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.798e-05/0.1866, allocations: 7.922 kB / 0.603 GB, free: 1.516 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.1868, allocations: 12.06 kB / 0.6031 GB, free: 1.504 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.008e-05/0.1868, allocations: 7.984 kB / 0.6031 GB, free: 1.496 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.686e-06/0.1868, allocations: 4 kB / 0.6031 GB, free: 1.492 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.481e-05/0.1868, allocations: 83.27 kB / 0.6031 GB, free: 1.41 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1868, allocations: 0 / 0.6031 GB, free: 1.41 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002707/0.1871, allocations: 36 kB / 0.6032 GB, free: 1.375 MB / 0.4981 GB 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007769/0.1879, allocations: 0.8405 MB / 0.604 GB, free: 0.5117 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002969/0.1882, allocations: 92.02 kB / 0.6041 GB, free: 432 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.1882, allocations: 0 / 0.6041 GB, free: 432 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001279/0.1884, allocations: 47.91 kB / 0.6041 GB, free: 384 kB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001935/0.1886, allocations: 4 kB / 0.6041 GB, free: 380 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.249/0.4376, allocations: 0.739 MB / 0.6049 GB, free: 40.41 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000117/0.4377, allocations: 0.6922 MB / 0.6055 GB, free: 39.71 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.451e-05/0.4378, allocations: 13.08 kB / 0.6055 GB, free: 39.71 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.532e-05/0.4379, allocations: 26.34 kB / 0.6056 GB, free: 39.7 MB / 0.4981 GB Notification: Performance of SimCode: time 1.122e-06/0.4379, allocations: 1.406 kB / 0.6056 GB, free: 39.7 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01096/0.4489, allocations: 2.073 MB / 0.6076 GB, free: 39.64 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001335/0.449, allocations: 234.6 kB / 0.6078 GB, free: 39.41 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.631/2.08, allocations: 1.5 kB / 0.6078 GB, free: 39.41 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 BuildSysPro_BuildSysPro_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) Environment - environmentSimulation: