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.005156/0.005156, allocations: 105 kB / 15.74 MB, free: 6.035 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.001221/0.001221, allocations: 195.6 kB / 16.67 MB, free: 5.969 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.231/1.231, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001978/0.001978, allocations: 290.7 kB / 290.8 MB, free: 1.773 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.89/0.89, allocations: 169.2 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001601/0.001601, allocations: 96.38 kB / 0.681 GB, free: 15.99 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1504/0.1521, allocations: 86.98 MB / 0.7659 GB, free: 8.941 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002535/0.1546, allocations: 1.467 MB / 0.7673 GB, free: 7.465 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001111/0.1558, allocations: 0.6271 MB / 0.7679 GB, free: 6.836 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.032e-05/0.1558, allocations: 4 kB / 0.768 GB, free: 6.832 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.893e-05/0.1559, allocations: 7.922 kB / 0.768 GB, free: 6.824 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.939e-05/0.156, allocations: 11.86 kB / 0.768 GB, free: 6.812 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006045/0.1566, allocations: 158.9 kB / 0.7681 GB, free: 6.66 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.081e-05/0.1567, allocations: 59.58 kB / 0.7682 GB, free: 6.602 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.691e-05/0.1567, allocations: 4.281 kB / 0.7682 GB, free: 6.598 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 5.84e-05/0.1568, allocations: 23.92 kB / 0.7682 GB, free: 6.574 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.614e-05/0.1568, allocations: 27.91 kB / 0.7682 GB, free: 6.547 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.397e-05/0.1569, allocations: 7.938 kB / 0.7682 GB, free: 6.539 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004728/0.1573, allocations: 343.3 kB / 0.7686 GB, free: 6.203 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.295e-05/0.1574, allocations: 15.97 kB / 0.7686 GB, free: 6.188 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 4.155e-05/0.1574, allocations: 27.86 kB / 0.7686 GB, free: 6.16 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002783/0.1577, allocations: 179.5 kB / 0.7688 GB, free: 5.984 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.1577, allocations: 0 / 0.7688 GB, free: 5.984 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.723e-06/0.1577, allocations: 0 / 0.7688 GB, free: 5.984 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.756e-06/0.1577, allocations: 3.938 kB / 0.7688 GB, free: 5.98 MB / 0.5606 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.0005481/0.1583, allocations: 399.3 kB / 0.7692 GB, free: 5.539 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.1583, allocations: 8.031 kB / 0.7692 GB, free: 5.531 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.56e-05/0.1584, allocations: 38.75 kB / 0.7692 GB, free: 5.484 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.401e-05/0.1584, allocations: 8.844 kB / 0.7692 GB, free: 5.477 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001062/0.1585, allocations: 168.3 kB / 0.7694 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.639e-05/0.1586, allocations: 8.375 kB / 0.7694 GB, free: 5.266 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.363e-05/0.1586, allocations: 12.28 kB / 0.7694 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002266/0.1588, allocations: 82.16 kB / 0.7695 GB, free: 5.168 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.1588, allocations: 3.938 kB / 0.7695 GB, free: 5.164 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.466e-05/0.1589, allocations: 8 kB / 0.7695 GB, free: 5.156 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.1589, allocations: 0 / 0.7695 GB, free: 5.156 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002128/0.1591, allocations: 47.95 kB / 0.7695 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005062/0.1596, allocations: 320.7 kB / 0.7698 GB, free: 4.746 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002531/0.1599, allocations: 78.47 kB / 0.7699 GB, free: 4.66 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.16, allocations: 36.78 kB / 0.7699 GB, free: 4.621 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.911e-05/0.16, allocations: 0 / 0.7699 GB, free: 4.621 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.173e-05/0.16, allocations: 34.56 kB / 0.77 GB, free: 4.578 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 8.61e-07/0.16, allocations: 4 kB / 0.77 GB, free: 4.574 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.001496/0.1615, allocations: 0.6346 MB / 0.7706 GB, free: 3.848 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.969e-05/0.1616, allocations: 63.39 kB / 0.7707 GB, free: 3.773 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.307e-05/0.1617, allocations: 105.8 kB / 0.7708 GB, free: 3.66 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.732e-05/0.1617, allocations: 33.64 kB / 0.7708 GB, free: 3.621 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.388e-05/0.1617, allocations: 92.06 kB / 0.7709 GB, free: 3.527 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.311e-05/0.1618, allocations: 43.31 kB / 0.7709 GB, free: 3.484 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.242e-05/0.1618, allocations: 29.7 kB / 0.771 GB, free: 3.449 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.153e-05/0.1619, allocations: 318.8 kB / 0.7713 GB, free: 3.129 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001231/0.162, allocations: 35.98 kB / 0.7713 GB, free: 3.094 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001075/0.1622, allocations: 31.97 kB / 0.7713 GB, free: 3.062 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002212/0.1624, allocations: 68.83 kB / 0.7714 GB, free: 2.992 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.1624, allocations: 0 / 0.7714 GB, free: 2.992 MB / 0.5606 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002832/0.1627, allocations: 120.3 kB / 0.7715 GB, free: 2.871 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.1627, allocations: 6.188 kB / 0.7715 GB, free: 2.867 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.1627, allocations: 4 kB / 0.7715 GB, free: 2.863 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.1627, allocations: 0 / 0.7715 GB, free: 2.863 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00014/0.1629, allocations: 32.02 kB / 0.7715 GB, free: 2.832 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.1629, allocations: 7.875 kB / 0.7716 GB, free: 2.824 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.987e-05/0.163, allocations: 11.98 kB / 0.7716 GB, free: 2.812 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-06/0.163, allocations: 0 / 0.7716 GB, free: 2.812 MB / 0.5606 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.891e-05/0.163, allocations: 114.5 kB / 0.7717 GB, free: 2.691 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.296e-05/0.1631, allocations: 7.906 kB / 0.7717 GB, free: 2.684 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003331/0.1634, allocations: 133.5 kB / 0.7718 GB, free: 2.547 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.1634, allocations: 4 kB / 0.7718 GB, free: 2.543 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.1634, allocations: 3.938 kB / 0.7718 GB, free: 2.539 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.1635, allocations: 0 / 0.7718 GB, free: 2.539 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000495/0.164, allocations: 378.7 kB / 0.7722 GB, free: 2.113 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.164, allocations: 4 kB / 0.7722 GB, free: 2.109 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001413/0.1641, allocations: 31.91 kB / 0.7722 GB, free: 2.078 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.1641, allocations: 7.938 kB / 0.7722 GB, free: 2.07 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.1641, allocations: 4 kB / 0.7722 GB, free: 2.066 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.1642, allocations: 0 / 0.7722 GB, free: 2.066 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1642, allocations: 7.938 kB / 0.7722 GB, free: 2.059 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00044/0.1646, allocations: 243.4 kB / 0.7725 GB, free: 1.805 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.58e-05/0.1646, allocations: 81.02 kB / 0.7725 GB, free: 1.707 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.756e-05/0.1647, allocations: 8 kB / 0.7725 GB, free: 1.699 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000111/0.1648, allocations: 12.02 kB / 0.7726 GB, free: 1.688 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.618e-05/0.1648, allocations: 4 kB / 0.7726 GB, free: 1.684 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/0.1648, allocations: 7.984 kB / 0.7726 GB, free: 1.676 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.233e-05/0.1649, allocations: 83.22 kB / 0.7726 GB, free: 1.594 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.01e-07/0.1649, allocations: 0 / 0.7726 GB, free: 1.594 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002637/0.1651, allocations: 43.94 kB / 0.7727 GB, free: 1.551 MB / 0.5606 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 (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.0007428/0.1659, allocations: 0.8138 MB / 0.7735 GB, free: 0.7109 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002768/0.1662, allocations: 75.89 kB / 0.7736 GB, free: 0.6367 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1662, allocations: 7.938 kB / 0.7736 GB, free: 0.6289 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001204/0.1663, allocations: 51.97 kB / 0.7736 GB, free: 0.5781 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002872/0.1666, allocations: 11.5 kB / 0.7736 GB, free: 0.5703 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2851/0.4517, allocations: 1.587 MB / 0.7752 GB, free: 13.63 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001104/0.4519, allocations: 0.6939 MB / 0.7759 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.637e-05/0.452, allocations: 12.53 kB / 0.7759 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.02e-05/0.452, allocations: 26.53 kB / 0.7759 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of SimCode: time 1.412e-06/0.452, allocations: 0.75 kB / 0.7759 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01905/0.4711, allocations: 2.382 MB / 0.7782 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.16/7.632, allocations: 4.719 kB / 0.7782 GB, free: 12.64 MB / 0.5606 GB (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)