Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dp_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_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.004466/0.004466, allocations: 103.8 kB / 15.74 MB, free: 6.449 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.001322/0.001322, allocations: 195.9 kB / 16.67 MB, free: 6.355 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.427/1.427, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002547/0.002547, allocations: 294.6 kB / 290.8 MB, free: 1.938 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.986/0.986, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002747/0.002747, allocations: 99.84 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1519/0.1547, allocations: 86.96 MB / 0.7659 GB, free: 8.941 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002147/0.1568, allocations: 1.266 MB / 0.7671 GB, free: 7.664 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001011/0.1579, allocations: 0.6111 MB / 0.7677 GB, free: 7.051 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.323e-05/0.1579, allocations: 0 / 0.7677 GB, free: 7.051 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.727e-05/0.1579, allocations: 3.938 kB / 0.7677 GB, free: 7.047 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.082e-05/0.158, allocations: 15.91 kB / 0.7678 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004945/0.1585, allocations: 139.4 kB / 0.7679 GB, free: 6.895 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 5.459e-05/0.1585, allocations: 19.94 kB / 0.7679 GB, free: 6.875 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.444e-05/0.1586, allocations: 7.984 kB / 0.7679 GB, free: 6.867 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.478e-05/0.1586, allocations: 11.94 kB / 0.7679 GB, free: 6.855 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.263e-05/0.1587, allocations: 3.984 kB / 0.7679 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.32e-05/0.1587, allocations: 4 kB / 0.7679 GB, free: 6.848 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005219/0.1592, allocations: 339.3 kB / 0.7683 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.649e-05/0.1592, allocations: 15.91 kB / 0.7683 GB, free: 6.5 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.811e-05/0.1593, allocations: 4 kB / 0.7683 GB, free: 6.496 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002501/0.1595, allocations: 143.9 kB / 0.7684 GB, free: 6.355 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.1595, allocations: 3.938 kB / 0.7684 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.473e-06/0.1595, allocations: 0 / 0.7684 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.967e-06/0.1596, allocations: 4 kB / 0.7684 GB, free: 6.348 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004258/0.16, allocations: 367 kB / 0.7688 GB, free: 5.938 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.16, allocations: 8.625 kB / 0.7688 GB, free: 5.93 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.174e-05/0.1601, allocations: 34.75 kB / 0.7688 GB, free: 5.887 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.301e-05/0.1601, allocations: 0.9375 kB / 0.7688 GB, free: 5.887 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001191/0.1602, allocations: 164.3 kB / 0.769 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.148e-05/0.1602, allocations: 8.312 kB / 0.769 GB, free: 5.68 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.934e-05/0.1603, allocations: 4.375 kB / 0.769 GB, free: 5.676 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001022/0.1604, allocations: 46.23 kB / 0.769 GB, free: 5.625 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.1604, allocations: 3.938 kB / 0.769 GB, free: 5.621 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.608e-06/0.1604, allocations: 4 kB / 0.769 GB, free: 5.617 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.1604, allocations: 0 / 0.769 GB, free: 5.617 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.85e-05/0.1605, allocations: 11.92 kB / 0.769 GB, free: 5.605 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000174/0.1606, allocations: 157.7 kB / 0.7692 GB, free: 5.402 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001678/0.1608, allocations: 42.61 kB / 0.7692 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.522e-05/0.1609, allocations: 20.86 kB / 0.7693 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.642e-05/0.1609, allocations: 0 / 0.7693 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.681e-05/0.1609, allocations: 34.64 kB / 0.7693 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=4): time 9.31e-07/0.1609, allocations: 4 kB / 0.7693 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6): time 0.0005915/0.1615, allocations: 314.1 kB / 0.7696 GB, free: 4.922 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.109e-05/0.1616, allocations: 51.41 kB / 0.7696 GB, free: 4.859 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.586e-05/0.1616, allocations: 97.84 kB / 0.7697 GB, free: 4.754 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.27e-05/0.1617, allocations: 33.7 kB / 0.7698 GB, free: 4.715 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.669e-05/0.1617, allocations: 80.14 kB / 0.7698 GB, free: 4.633 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.942e-05/0.1617, allocations: 23.8 kB / 0.7699 GB, free: 4.609 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.618e-05/0.1618, allocations: 17.72 kB / 0.7699 GB, free: 4.586 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001375/0.1619, allocations: 318.8 kB / 0.7702 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.52e-05/0.162, allocations: 8 kB / 0.7702 GB, free: 4.258 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.82e-05/0.162, allocations: 15.98 kB / 0.7702 GB, free: 4.242 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.806e-05/0.1621, allocations: 28.86 kB / 0.7702 GB, free: 4.211 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.22e-07/0.1621, allocations: 4 kB / 0.7702 GB, free: 4.207 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001112/0.1622, allocations: 81.5 kB / 0.7703 GB, free: 4.121 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.1622, allocations: 4 kB / 0.7703 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.487e-06/0.1622, allocations: 0 / 0.7703 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.023e-05/0.1622, allocations: 0 / 0.7703 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.341e-05/0.1623, allocations: 12 kB / 0.7703 GB, free: 4.105 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.978e-06/0.1623, allocations: 0 / 0.7703 GB, free: 4.105 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.96e-05/0.1623, allocations: 0 / 0.7703 GB, free: 4.105 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.398e-06/0.1623, allocations: 0 / 0.7703 GB, free: 4.105 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 (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 8.388e-05/0.1624, allocations: 122.5 kB / 0.7705 GB, free: 3.977 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.281e-05/0.1624, allocations: 3.938 kB / 0.7705 GB, free: 3.973 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001427/0.1626, allocations: 77.66 kB / 0.7705 GB, free: 3.891 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.1626, allocations: 8.391 kB / 0.7705 GB, free: 3.883 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.1626, allocations: 0 / 0.7705 GB, free: 3.883 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.1626, allocations: 0 / 0.7705 GB, free: 3.883 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003328/0.1629, allocations: 315.3 kB / 0.7708 GB, free: 3.516 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.163, allocations: 0 / 0.7708 GB, free: 3.516 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.314e-05/0.163, allocations: 12 kB / 0.7708 GB, free: 3.504 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.163, allocations: 4.031 kB / 0.7709 GB, free: 3.5 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.163, allocations: 7.984 kB / 0.7709 GB, free: 3.492 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.1631, allocations: 4 kB / 0.7709 GB, free: 3.488 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1631, allocations: 0 / 0.7709 GB, free: 3.488 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001947/0.1633, allocations: 184.5 kB / 0.771 GB, free: 3.289 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.378e-05/0.1633, allocations: 81.14 kB / 0.7711 GB, free: 3.191 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.49e-05/0.1633, allocations: 3.984 kB / 0.7711 GB, free: 3.188 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.325e-05/0.1634, allocations: 4.062 kB / 0.7711 GB, free: 3.184 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.478e-05/0.1635, allocations: 4 kB / 0.7711 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.883e-06/0.1635, allocations: 4 kB / 0.7711 GB, free: 3.176 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.223e-05/0.1635, allocations: 79.28 kB / 0.7712 GB, free: 3.098 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1635, allocations: 0 / 0.7712 GB, free: 3.098 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003531/0.1639, allocations: 27.86 kB / 0.7712 GB, free: 3.07 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (m_flow_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.0005465/0.1644, allocations: 0.741 MB / 0.772 GB, free: 2.301 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 9.98e-05/0.1645, allocations: 31.98 kB / 0.772 GB, free: 2.27 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1646, allocations: 0 / 0.772 GB, free: 2.27 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 3.346e-05/0.1646, allocations: 20.17 kB / 0.772 GB, free: 2.25 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002893/0.1649, allocations: 8 kB / 0.772 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001307/0.1662, allocations: 1.318 MB / 0.7733 GB, free: 0.8398 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002979/0.1665, allocations: 0.6807 MB / 0.774 GB, free: 136 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.383e-05/0.1666, allocations: 12.03 kB / 0.774 GB, free: 124 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.093e-05/0.1666, allocations: 19.38 kB / 0.774 GB, free: 104 kB / 0.5606 GB Notification: Performance of SimCode: time 2.5e-07/0.1666, allocations: 0 / 0.774 GB, free: 104 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.846/2.013, allocations: 1.616 MB / 0.7756 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/13.72, allocations: 5.75 kB / 0.7756 GB, free: 14.33 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)